From a4dad70dafc5e08af51ff39d7bc9a3d542542e3c Mon Sep 17 00:00:00 2001 From: jkito Date: Tue, 25 Oct 2022 21:51:51 +0530 Subject: [ghaci] Add github actions job to produce windows artifacts --- .github/workflows/nightly.yaml | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index adf7536..a2ac046 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -6,6 +6,12 @@ name: 'mac and windows nightly build' on: workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + required: false + default: false push: branches: - main @@ -23,8 +29,35 @@ jobs: runs-on: - windows-2019 steps: + - name: Setup Golang 1.17 + uses: actions/setup-go@v3 + with: + go-version: '1.17' + - name: Install build dependencies from chocolatey + run: choco install qt5-default mingw sigcheck qt-installer-framework + - run: git config --global core.autocrlf input - name: Checkout uses: actions/checkout@v3 + - name: Set up Cygwin + uses: cygwin/cygwin-install-action@master + with: + packages: make curl + - name: Build app + run: | + $env:PATH="$env:SystemDrive\Qt\5.15.2\mingw81_64\bin;$env:SystemDrive\Qt\QtIFW-4.4.2\bin;$env:PATH" + echo $env:PATH + make build + make installer + - name: Upload build/qt/release/riseup-vpn.exe + uses: actions/upload-artifact@v3 + with: + name: riseup-vpn-exe-${{ github.sha }} + path: build/qt/release/riseup-vpn.exe + - name: Upload build/installer/RiseupVPN-installer-*.exe + uses: actions/upload-artifact@v3 + with: + name: riseup-vpn-installer-${{ github.sha }} + path: build/installer/*.exe build-mac: runs-on: @@ -64,5 +97,3 @@ jobs: with: name: riseup-vpn-dmg-${{ github.sha }} path: deploy/RiseupVPN-unknown.dmg - - -- cgit v1.2.3