Skip to content

Commit

Permalink
Windows Release CI
Browse files Browse the repository at this point in the history
Tweaks

Steadily learning more about the MSBuild setup

Maybe this will work

Hey, don't reinvent the wheel

Maybe this'll work?

Wee again

Weird syntax but maybe

Is the QT install wrong?

Oh, whoops, still wrong version

Thanks qsettings2json

Oh that was an important part..

Oh that was just for VCVars

Attempt to build libgit2

Whoops

Maybe relative paths are less painful for once

Finally cave and modify release_fritzing.bat

We're getting clooooserrrr

These paths are gonna drive me mad

BEH PATHS WHY

My head hurts

Even my debugging statements cause errors

That sorta answers my questions (no it doesn't)

So does this get the stupid folder structure I need or not

So this SHOULD at least find libgit2

Need boost...

Should not need boost

Fix from actions/runner-images#754

Also add libgit2 cache

is the fucking boostdetect pri script broken?

I swear to fuck

Revert changes to boostdetect, test downloading boost

ugh i hate powershell

If the problem was actually this entire fucking time that I didn't check boost I SWEAR TO FUCK I WILL

I am legit pissed

Do it again but release this time lol

Change to artifacts instead of releases
  • Loading branch information
tigercat2000 committed Dec 2, 2020
1 parent da06d0b commit b762dc0
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Win64 Release

on:
push:
branches:
- develop

jobs:
create_release:
name: Create GitHub Release
runs-on: windows-2019

steps:
- name: Install Extra PowerShell Modules
run: |
Install-Module -Name Pscx -Force -AllowClobber
Install-Module 7Zip4PowerShell -Force -Verbose
- name: Checkout main repo
uses: actions/checkout@v2
with:
path: fritzing-app

- name: libgit2 v0.28.5 cache
uses: actions/cache@v2
id: libgit2-cache
with:
path: libgit2
key: ${{ runner.os }}-libgit2-0_28_5

- name: Checkout libgit2 v0.28.5
uses: actions/checkout@v2
if: steps.libgit2-cache.outputs.cache-hit != 'true'
with:
repository: 'libgit2/libgit2'
ref: 'v0.28.5'
path: libgit2

- name: Build libgit2 v0.28.5
if: steps.libgit2-cache.outputs.cache-hit != 'true'
run: |
Invoke-BatchFile "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cd libgit2
mkdir build64
cd build64
cmake .. -G "Visual Studio 16 2019" -A x64
cmake --build . --config Release
- name: boost v1.74.0 cache
uses: actions/cache@v2
id: boost-cache
with:
path: boost_1_74_0
key: ${{ runner.os }}-boost-1_74_0

- name: Download boost_1_74_0.zip
if: steps.boost-cache.outputs.cache-hit != 'true'
run: |
Invoke-WebRequest -Uri https://dl.bintray.com/boostorg/release/1.74.0/source/boost_1_74_0.zip -OutFile boost_1_74_0.zip
CertUtil -hashfile boost_1_74_0.zip SHA256
Expand-7Zip -ArchiveFileName boost_1_74_0.zip -TargetPath .
rm boost_1_74_0.zip
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
version: "5.15.2"
host: "windows"
target: "desktop"
arch: "win64_msvc2019_64"

- name: Invoke release_fritzing.bat
run: |
Invoke-BatchFile "%programfiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cd fritzing-app
.\tools\release_fritzing.bat ${{ github.sha }} 64 2019
env:
QTBIN: ${{ env.Qt5_DIR }}\bin

- name: Upload Artifact of release
uses: actions/upload-artifact@v2
with:
name: ${{ github.sha }}.windows.64.zip
path: ./release64/fritzing-refs/heads/${{ github.sha }}.windows.64.zip

0 comments on commit b762dc0

Please sign in to comment.