-
Notifications
You must be signed in to change notification settings - Fork 25
103 lines (89 loc) · 2.95 KB
/
build.yml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Github Actions configuration file
# Runs the build on Linux, Windows and MacOS
name: Build
on:
push:
pull_request:
page_build:
release:
types:
- created
- edited
- prereleased
- released
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# https://github.com/actions/virtual-environments#available-environments
os: [ubuntu-20.04, windows-latest, macos-latest]
include:
- os: ubuntu-20.04 # Oldest LTS for appimage support
qt: '6.2.4' # Qt6 LTS
qt_modules: 'qtmultimedia'
dependencies: |
sudo apt-get install mesa-common-dev libgl1-mesa-dev libpcap-dev libgstreamer-gl1.0-0 libgstreamer-plugins-base1.0-0 libxkbcommon-x11-0 -y
installer_setup: |
sudo gem install --no-document fpm
make_cmd: make
artifact: |
install/linux/sACNView*.AppImage
install/linux/*.deb
- os: windows-latest
qt: '6.2.4' # Qt6 LTS
qt_modules: 'qtmultimedia'
installer_setup: |
Invoke-WebRequest -Uri "https://nsis.sourceforge.io/mediawiki/images/e/e0/NSIS_Simple_Firewall_Plugin_Unicode_1.21.zip" -OutFile "NSIS_Simple_Firewall_Plugin_Unicode.zip"
7z e NSIS_Simple_Firewall_Plugin_Unicode.zip -o"C:\Program Files (x86)\NSIS\Plugins\x86-unicode"
arch: win32_msvc2019
make_cmd: nmake
artifact: |
install/win/sACNView*.exe
release/*.pdb
- os: macos-latest
qt: '6.2.4' # Qt6 LTS
qt_modules: 'qtmultimedia'
installer_setup: |
brew install create-dmg
xcode: latest-stable
make_cmd: make
artifact: install/mac/sACNView*.dmg
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Install Qt
uses: jurplel/[email protected]
with:
version: ${{ matrix.qt }}
modules: ${{ matrix.qt_modules }}
aqtversion: '==2.0.0'
- name: Dependencies
run: ${{ matrix.dependencies }}
- name: Setup Installer
run: ${{ matrix.installer_setup }}
- name: Environment Setup (MSVC)
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
- name: Environment Setup (Xcode)
if: runner.os == 'macOS'
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}
- name: Run qmake
shell: bash
run: |
if [[ -n "${Qt5_DIR}" ]]; then export QTDIR=${Qt5_DIR}; fi
if [[ -n "${Qt6_DIR}" ]]; then export QTDIR=${Qt6_DIR}; fi
qmake sACNView.pro
- name: Run make
run: ${{ matrix.make_cmd }}
- name: Upload Artifact(s)
uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }}
path: ${{ matrix.artifact }}