blob: adf7536c8ca737ab716ca5909c092efd82b1b185 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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
|