Skip to content

Commit 0c491f0

Browse files
committed
github: Add builds for Fedora and Arch Linux
Add builds for popular distros to make sure we catch any distro-specific regression that might pop up. Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
1 parent ba96b32 commit 0c491f0

1 file changed

Lines changed: 180 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 180 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
path: db48x-macos.zip
7878

7979
build-simulator-linux:
80-
name: Build Simulator (Linux)
80+
name: Build Simulator (Linux, Ubuntu)
8181
runs-on: ubuntu-latest
8282

8383
steps:
@@ -115,6 +115,91 @@ jobs:
115115
db48x
116116
help/
117117
118+
build-simulator-linux-fedora:
119+
name: Build Simulator (Linux, Fedora)
120+
runs-on: ubuntu-latest
121+
container: fedora:latest
122+
env:
123+
QT_QPA_PLATFORM: offscreen
124+
125+
steps:
126+
- name: Install git
127+
run: dnf install -y git
128+
129+
- name: Checkout code
130+
uses: actions/checkout@v6
131+
with:
132+
submodules: recursive
133+
134+
- name: Install dependencies
135+
run: |
136+
dnf install -y @development-tools git python3 python3-pip \
137+
libxcb-devel mesa-libGL-devel libxkbcommon-x11-devel freetype-devel \
138+
pkgconfig xcb-util-wm-devel xcb-util-image-devel \
139+
xcb-util-keysyms-devel xcb-util-renderutil-devel
140+
python3 -m pip install aqtinstall
141+
python3 -m aqt install-qt linux desktop 6.8.3 --outputdir /opt/Qt \
142+
--modules qtmultimedia
143+
echo "/opt/Qt/6.8.3/gcc_64/bin" >> "$GITHUB_PATH"
144+
145+
- name: Build simulator
146+
run: |
147+
echo "${{ github.run_number }}" > .build_id
148+
make sim
149+
150+
- name: Run test suite
151+
run: ./db48x -H -I -Tall
152+
153+
- name: Upload simulator artifact
154+
uses: actions/upload-artifact@v7
155+
with:
156+
name: db48x-simulator-linux-fedora
157+
path: |
158+
db48x
159+
help/
160+
161+
build-simulator-linux-arch:
162+
name: Build Simulator (Linux, Arch)
163+
runs-on: ubuntu-latest
164+
container: archlinux:latest
165+
env:
166+
QT_QPA_PLATFORM: offscreen
167+
168+
steps:
169+
- name: Install git
170+
run: pacman -Sy --noconfirm git
171+
172+
- name: Checkout code
173+
uses: actions/checkout@v6
174+
with:
175+
submodules: recursive
176+
177+
- name: Install dependencies
178+
run: |
179+
pacman -Syu --noconfirm base-devel git python python-pip \
180+
libxcb mesa libxkbcommon-x11 freetype2 pkgconf \
181+
xcb-util-wm xcb-util-image xcb-util-keysyms xcb-util-renderutil
182+
python -m pip install --break-system-packages aqtinstall
183+
python -m aqt install-qt linux desktop 6.8.3 --outputdir /opt/Qt \
184+
--modules qtmultimedia
185+
echo "/opt/Qt/6.8.3/gcc_64/bin" >> "$GITHUB_PATH"
186+
187+
- name: Build simulator
188+
run: |
189+
echo "${{ github.run_number }}" > .build_id
190+
make sim
191+
192+
- name: Run test suite
193+
run: ./db48x -H -I -Tall
194+
195+
- name: Upload simulator artifact
196+
uses: actions/upload-artifact@v7
197+
with:
198+
name: db48x-simulator-linux-arch
199+
path: |
200+
db48x
201+
help/
202+
118203
build-simulator-windows:
119204
name: Build Simulator (Windows)
120205
runs-on: windows-latest
@@ -271,7 +356,7 @@ jobs:
271356
path: db50x-macos.zip
272357

273358
build-color-simulator-linux:
274-
name: Build Color DM32 Simulator (Linux)
359+
name: Build Color DM32 Simulator (Linux, Ubuntu)
275360
runs-on: ubuntu-latest
276361

277362
steps:
@@ -309,6 +394,91 @@ jobs:
309394
db50x
310395
help/
311396
397+
build-color-simulator-linux-fedora:
398+
name: Build Color DM32 Simulator (Linux, Fedora)
399+
runs-on: ubuntu-latest
400+
container: fedora:latest
401+
env:
402+
QT_QPA_PLATFORM: offscreen
403+
404+
steps:
405+
- name: Install git
406+
run: dnf install -y git
407+
408+
- name: Checkout code
409+
uses: actions/checkout@v6
410+
with:
411+
submodules: recursive
412+
413+
- name: Install dependencies
414+
run: |
415+
dnf install -y @development-tools git python3 python3-pip \
416+
libxcb-devel mesa-libGL-devel libxkbcommon-x11-devel freetype-devel \
417+
pkgconfig xcb-util-wm-devel xcb-util-image-devel \
418+
xcb-util-keysyms-devel xcb-util-renderutil-devel
419+
python3 -m pip install aqtinstall
420+
python3 -m aqt install-qt linux desktop 6.8.3 --outputdir /opt/Qt \
421+
--modules qtmultimedia
422+
echo "/opt/Qt/6.8.3/gcc_64/bin" >> "$GITHUB_PATH"
423+
424+
- name: Build color DM32 simulator
425+
run: |
426+
echo "${{ github.run_number }}" > .build_id
427+
make color-dm32-sim
428+
429+
- name: Run test suite
430+
run: ./db50x -H -I -Tall
431+
432+
- name: Upload color simulator artifact
433+
uses: actions/upload-artifact@v7
434+
with:
435+
name: db50x-color-simulator-linux-fedora
436+
path: |
437+
db50x
438+
help/
439+
440+
build-color-simulator-linux-arch:
441+
name: Build Color DM32 Simulator (Linux, Arch)
442+
runs-on: ubuntu-latest
443+
container: archlinux:latest
444+
env:
445+
QT_QPA_PLATFORM: offscreen
446+
447+
steps:
448+
- name: Install git
449+
run: pacman -Sy --noconfirm git
450+
451+
- name: Checkout code
452+
uses: actions/checkout@v6
453+
with:
454+
submodules: recursive
455+
456+
- name: Install dependencies
457+
run: |
458+
pacman -Syu --noconfirm base-devel git python python-pip \
459+
libxcb mesa libxkbcommon-x11 freetype2 pkgconf \
460+
xcb-util-wm xcb-util-image xcb-util-keysyms xcb-util-renderutil
461+
python -m pip install --break-system-packages aqtinstall
462+
python -m aqt install-qt linux desktop 6.8.3 --outputdir /opt/Qt \
463+
--modules qtmultimedia
464+
echo "/opt/Qt/6.8.3/gcc_64/bin" >> "$GITHUB_PATH"
465+
466+
- name: Build color DM32 simulator
467+
run: |
468+
echo "${{ github.run_number }}" > .build_id
469+
make color-dm32-sim
470+
471+
- name: Run test suite
472+
run: ./db50x -H -I -Tall
473+
474+
- name: Upload color simulator artifact
475+
uses: actions/upload-artifact@v7
476+
with:
477+
name: db50x-color-simulator-linux-arch
478+
path: |
479+
db50x
480+
help/
481+
312482
build-color-simulator-windows:
313483
name: Build Color DM32 Simulator (Windows)
314484
runs-on: windows-latest
@@ -677,9 +847,13 @@ jobs:
677847
needs: [
678848
build-simulator-macos,
679849
build-simulator-linux,
850+
build-simulator-linux-fedora,
851+
build-simulator-linux-arch,
680852
build-simulator-windows,
681853
build-color-simulator-macos,
682854
build-color-simulator-linux,
855+
build-color-simulator-linux-fedora,
856+
build-color-simulator-linux-arch,
683857
build-color-simulator-windows,
684858
build-android,
685859
build-color-android,
@@ -736,9 +910,13 @@ jobs:
736910
needs: [
737911
build-simulator-macos,
738912
build-simulator-linux,
913+
build-simulator-linux-fedora,
914+
build-simulator-linux-arch,
739915
build-simulator-windows,
740916
build-color-simulator-macos,
741917
build-color-simulator-linux,
918+
build-color-simulator-linux-fedora,
919+
build-color-simulator-linux-arch,
742920
build-color-simulator-windows,
743921
build-android,
744922
build-color-android,

0 commit comments

Comments
 (0)