-
Notifications
You must be signed in to change notification settings - Fork 278
60 lines (56 loc) · 1.91 KB
/
build.yaml
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
name: build
on: [push, pull_request]
jobs:
ubuntu:
runs-on: [ubuntu-latest]
strategy:
matrix:
java: [11, 17]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'liberica'
- run: sudo apt-get install nsis makeself
- run: ant makeself
- run: sudo out/qz-tray-*.run
- run: /opt/qz-tray/qz-tray --version
- run: ant nsis
macos:
runs-on: [macos-latest]
strategy:
matrix:
java: [11, 17]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'liberica'
- run: brew install nsis makeself
- run: ant pkgbuild
- run: echo "Setting CA trust settings to 'allow' (https://github.com/actions/runner-images/issues/4519)"
- run: security authorizationdb read com.apple.trust-settings.admin > /tmp/trust-settings-backup.xml
- run: sudo security authorizationdb write com.apple.trust-settings.admin allow
- run: sudo installer -pkg out/qz-tray-*.pkg -target /
- run: echo "Restoring CA trust settings back to default"
- run: sudo security authorizationdb write com.apple.trust-settings.admin < /tmp/trust-settings-backup.xml
- run: "'/Applications/QZ Tray.app/Contents/MacOS/QZ Tray' --version"
- run: ant makeself
- run: ant nsis
windows:
runs-on: [windows-latest]
strategy:
matrix:
java: [11, 17]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'liberica'
- run: choco install nsis
- run: ant nsis
- run: Start-Process -Wait ./out/qz-tray-*.exe -ArgumentList "/S"
- run: "&'C:/Program Files/QZ Tray/qz-tray.exe' --wait --version|Out-Null"