summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjkito <jkito@github>2022-10-16 22:21:14 +0530
committerjkito <jkito@github>2022-11-13 15:02:50 +0530
commitad6c13cd65aaf1c571d3dd4058dfe94557925ce3 (patch)
treee4067cbfeba6915e6e5677e05288d5e28df44399
parentdfb4a03c76c606d750a679a53e5993afb7ca7ad8 (diff)
[ghaci] initial github actions job for producing macOS artifacts
this adds boilerplate job for windows aswell
-rw-r--r--.github/workflows/nightly.yaml68
1 files changed, 68 insertions, 0 deletions
diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml
new file mode 100644
index 0000000..adf7536
--- /dev/null
+++ b/.github/workflows/nightly.yaml
@@ -0,0 +1,68 @@
+name: 'mac and windows nightly build'
+
+# **What it does**: Generate unsigned macOS app and installer artifacts.
+# **Why we have it**: To build nightlies.
+# **Who does it impact**: Release/test.
+
+on:
+ workflow_dispatch:
+ push:
+ branches:
+ - main
+ pull_request:
+ schedule:
+ - cron: '* 10 * * *'
+
+# This allows a subsequently queued workflow run to interrupt previous runs
+concurrency:
+ group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
+ cancel-in-progress: true
+
+jobs:
+ build-win:
+ runs-on:
+ - windows-2019
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ build-mac:
+ runs-on:
+ - macos-11
+ steps:
+ - name: Setup Golang 1.17
+ uses: actions/setup-go@v3
+ with:
+ go-version: '1.17'
+ - run: go version
+ - name: Install build dependencies from brew
+ run: brew install qt5 make create-dmg && brew link qt5
+ - name: Install Qt installer framework
+ run: >
+ cd /tmp &&
+ curl -LO https://download.qt.io/official_releases/qt-installer-framework/4.0.1/QtInstallerFramework-mac-x64.dmg &&
+ hdiutil attach QtInstallerFramework-mac-x64.dmg &&
+ cd /Volumes/QtInstallerFramework-mac-x64/QtInstallerFramework-mac-x64.app/Contents/MacOS &&
+ ./QtInstallerFramework-mac-x64 in --da -c --al
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Build .app
+ run: >
+ export PATH=~/Qt/QtIFW-4.0.1/bin:$PATH &&
+ make clean && make vendor && make build
+ - name: Build installer
+ run: export PATH=~/Qt/QtIFW-4.0.1/bin:$PATH && make installer
+ - name: Build dmg
+ run: export PATH=~/Qt/QtIFW-4.0.1/bin:$PATH && make create_dmg
+ - name: Upload build/qt/release/riseup-vpn.app
+ uses: actions/upload-artifact@v3
+ with:
+ name: riseup-vpn-app-${{ github.sha }}
+ path: build/qt/release/riseup-vpn.app
+ - name: Upload deploy/RiseupVPN-unknown.dmg
+ uses: actions/upload-artifact@v3
+ with:
+ name: riseup-vpn-dmg-${{ github.sha }}
+ path: deploy/RiseupVPN-unknown.dmg
+
+