-
Notifications
You must be signed in to change notification settings - Fork 24
112 lines (104 loc) · 2.83 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
104
105
106
107
108
109
110
111
112
# 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_linux:
# Ubuntu Bionic
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Extra Packages
run: sudo apt-get install mesa-common-dev libgl1-mesa-dev libpcap-dev libgstreamer-plugins-base1.0-0 -y
- name: Install FPM
run: sudo gem install --no-document fpm
- name: Install Qt
uses: jurplel/[email protected]
with:
version: '5.15.2'
- name: Create Makefile
run:
qmake sACNView.pro
- name: Run MakeFile
run: make
- name: Setup TMate Session (Failure Only)
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: linux
path: |
sACNView*.AppImage
install/linux/*.deb
build_windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Qt
uses: jurplel/[email protected]
with:
version: '5.15.2'
arch: win32_msvc2019
- name: MSVC Environment Setup
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64_x86
- name: Download NSIS SimpleFC Plugin
uses: suisei-cn/actions-download-file@v1
with:
url: "https://nsis.sourceforge.io/mediawiki/images/e/e0/NSIS_Simple_Firewall_Plugin_Unicode_1.21.zip"
- name: Install NSIS SimpleFC Plugin
run: 7z e NSIS_Simple_Firewall_Plugin_Unicode_1.21.zip -o"C:\Program Files (x86)\NSIS\Plugins\x86-unicode"
- name: Create Makefile
run: qmake sACNView.pro
- name: Run MakeFile
run: nmake
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: windows
path: |
install/win/sACNView*.exe
release/*.pdb
- name: Setup TMate Session (Failure Only)
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
build_mac:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Qt
uses: jurplel/[email protected]
- name: Install create-dmg
run: brew install create-dmg
- name: Create Makefile
run: qmake sACNView.pro
- name: Run MakeFile
run: make
- name: Setup TMate Session (Failure Only)
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: macos
path: install/mac/sACNView*.dmg