-
Notifications
You must be signed in to change notification settings - Fork 16
138 lines (133 loc) · 4.08 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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: Build and Test
on: [push, pull_request]
jobs:
linux0:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Qt
run: |
sudo apt-mark hold grub-efi-amd64-signed
sudo apt update
sudo apt upgrade
sudo apt install language-pack-de qtbase5-dev libqt5xmlpatterns5-dev qttools5-dev qttools5-dev-tools
- name: Build
run: |
qmake -o "$RUNNER_TEMP" -r -Wall -Wlogic -Wparser CONFIG+=release "$GITHUB_WORKSPACE"
make -C "$RUNNER_TEMP" all
- name: Test
run: |
make -C "$RUNNER_TEMP" check
BIPOLAR_TEST_LOCALE=de_DE.UTF-8 make -C "$RUNNER_TEMP" check
- name: Test i18n
run: |
make -C "$RUNNER_TEMP" check
env:
BIPOLAR_TEST_LOCALE: de_DE.UTF-8
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: linux
path: ${{ runner.temp }}/src/release/Bipolar
if-no-files-found: error
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
qt: [ '5.9.9', '5.10.1', '5.11.3', '5.12.12', '5.13.2', '5.14.2', '5.15.2' ]
steps:
- uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt }}
- name: Build
run: |
qmake -o "$RUNNER_TEMP" -r -Wall -Wlogic -Wparser CONFIG+=release "$GITHUB_WORKSPACE"
make -C "$RUNNER_TEMP" all
- name: Test
run: make -C "$RUNNER_TEMP" check
- name: Install additional locale for testing
run: |
sudo apt-mark hold grub-efi-amd64-signed
sudo apt update
sudo apt upgrade
sudo apt install language-pack-de
- name: Test i18n
run: make -C "$RUNNER_TEMP" check
env:
BIPOLAR_TEST_LOCALE: de_DE.UTF-8
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: linux-${{ matrix.qt }}
path: ${{ runner.temp }}/src/release/Bipolar
if-no-files-found: error
mac:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
qt: [ '5.9.9', '5.10.1', '5.11.3', '5.12.12', '5.13.2', '5.14.2', '5.15.2' ]
steps:
- uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt }}
- name: Build
run: |
qmake -o "$RUNNER_TEMP" -r -Wall -Wlogic -Wparser CONFIG+=release "$GITHUB_WORKSPACE"
make -C "$RUNNER_TEMP" all
- name: Test
run: make -C "$RUNNER_TEMP" check
- name: Test i18n
run: make -C "$RUNNER_TEMP" check
env:
BIPOLAR_TEST_LOCALE: de_DE.UTF-8
- name: Make macOS disk image
run: make -C "$RUNNER_TEMP-build/pkg/osx" dmg'
- run: find "$RUNNER_TEMP" -type f
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: macos-${{ matrix.qt }}
path: ${{ runner.temp }}/Bipolar*.dmg
if-no-files-found: error
win:
runs-on: windows-latest
defaults: { run: { shell: cmd } }
strategy:
fail-fast: false
matrix:
qt: [ '5.9.9', '5.10.1', '5.11.3', '5.12.12', '5.13.2', '5.14.2', '5.15.2' ]
steps:
- uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt }}
- name: Configure MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Build
run: |
qmake -o "%RUNNER_TEMP%" -r -Wall -Wlogic -Wparser CONFIG+=release "%GITHUB_WORKSPACE%"
cd "%RUNNER_TEMP%" && nmake.exe all
- name: Test
run: nmake.exe check
working-directory: ${{ runner.temp }}
- name: Test i18n
run: nmake.exe check
env:
BIPOLAR_TEST_LOCALE: german
working-directory: ${{ runner.temp }}
- name: Package NSIS installer
run: nmake.exe nsis
working-directory: ${{ runner.temp }}/pkg/nsis
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: win-${{ matrix.qt }}
path: ${{ runner.temp }}/pkg/nsis/Bipolar-*.exe
if-no-files-found: error