Skip to content

Commit 0f437e9

Browse files
committed
chore: add ci test for archlinux
1 parent 980a0e7 commit 0f437e9

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

.github/workflows/linux-system.yml

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ jobs:
4141
container: debian:sid
4242
apt_prefix: ""
4343
upload_artifacts: false # Because of CEF, this is not built correctly
44+
- os: ubuntu-latest
45+
family: archlinux
46+
distribution: latest
47+
arch: amd64
48+
container: archlinux:latest
49+
apt_prefix: ""
50+
upload_artifacts: false # Not supported
4451

4552
runs-on: ${{ matrix.os }}
4653
container: ${{ matrix.container }}
@@ -49,10 +56,15 @@ jobs:
4956
shell: bash
5057

5158
steps:
59+
- name: Install git (archlinux)
60+
if: ${{ matrix.family == 'archlinux' }}
61+
run: pacman -Sy --noconfirm git
62+
5263
- uses: actions/checkout@v6
5364

5465
- name: Setup environment
5566
id: setup-env
67+
if: ${{ matrix.family == 'ubuntu' || matrix.family == 'debian' }}
5668
run: |
5769
ln -s tools/linux/deb/${{ matrix.family }}-${{ matrix.distribution }}/debian ./
5870
@@ -103,6 +115,7 @@ jobs:
103115
APT_PREFIX: ${{ matrix.apt_prefix }}
104116

105117
- name: Run build
118+
if: ${{ matrix.family == 'ubuntu' || matrix.family == 'debian' }}
106119
run: |
107120
# Perform build
108121
debuild -b -uc -us
@@ -111,7 +124,7 @@ jobs:
111124

112125
- name: Collect artifacts
113126
id: artifacts
114-
if: ${{ matrix.upload_artifacts }}
127+
if: ${{ (matrix.family == 'ubuntu' || matrix.family == 'debian') && matrix.upload_artifacts }}
115128
run: |
116129
mkdir -p dist
117130
mv ../*.deb dist/
@@ -140,7 +153,32 @@ jobs:
140153
CI: 1
141154

142155
- uses: actions/upload-artifact@v7
143-
if: ${{ matrix.upload_artifacts }}
156+
if: ${{ (matrix.family == 'ubuntu' || matrix.family == 'debian') && matrix.upload_artifacts }}
144157
with:
145158
name: ${{ steps.setup-env.outputs.BUILD_FILENAME }}
146159
path: dist
160+
161+
- name: Setup environment (archlinux)
162+
if: ${{ matrix.family == 'archlinux' }}
163+
run: |
164+
pacman -Syu --noconfirm
165+
pacman -S --noconfirm --needed \
166+
base-devel cmake ninja pkg-config \
167+
boost ffmpeg glew libglvnd \
168+
onetbb openal sfml \
169+
libxrandr simde
170+
env:
171+
CI: 1
172+
173+
- name: Run build (archlinux)
174+
if: ${{ matrix.family == 'archlinux' }}
175+
run: |
176+
cmake -B build -S src \
177+
-DCMAKE_BUILD_TYPE=Release \
178+
-DDIAG_FONT_PATH="/usr/share/fonts/liberation/LiberationMono-Regular.ttf" \
179+
-DENABLE_HTML=OFF \
180+
-G Ninja
181+
182+
cmake --build build
183+
env:
184+
CI: 1

0 commit comments

Comments
 (0)