Skip to content

Commit 3bc6be9

Browse files
committed
CI: add linux-s390x
1 parent 1eef6f8 commit 3bc6be9

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,41 @@ jobs:
303303
name: fastfetch-linux-ppc64le
304304
path: ./fastfetch-*.*
305305

306+
linux-s390x:
307+
name: Linux-s390x
308+
runs-on: ubuntu-22.04
309+
permissions:
310+
security-events: write
311+
contents: read
312+
steps:
313+
- name: checkout repository
314+
uses: actions/checkout@v4
315+
316+
- name: run VM
317+
uses: uraimo/run-on-arch-action@v2
318+
id: runcmd
319+
with:
320+
arch: s390x
321+
distro: ubuntu20.04
322+
githubToken: ${{ github.token }}
323+
run: |
324+
uname -a
325+
apt-get update && apt-get install -y cmake make g++ libvulkan-dev libwayland-dev libxrandr-dev libxcb-randr0-dev libdconf-dev libdbus-1-dev libmagickcore-dev libxfconf-0-dev libsqlite3-dev librpm-dev libegl-dev libglx-dev libosmesa6-dev ocl-icd-opencl-dev libpulse-dev libdrm-dev libchafa-dev libelf-dev directx-headers-dev rpm
326+
cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DCMAKE_INSTALL_PREFIX=/usr .
327+
cmake --build . --target package --verbose -j4
328+
./fastfetch --list-features
329+
time ./fastfetch -c presets/ci.jsonc --stat false
330+
time ./fastfetch -c presets/ci.jsonc --format json
331+
time ./flashfetch
332+
ldd fastfetch
333+
ctest --output-on-failure
334+
335+
- name: upload artifacts
336+
uses: actions/upload-artifact@v4
337+
with:
338+
name: fastfetch-linux-s390x
339+
path: ./fastfetch-*.*
340+
306341
musl-amd64:
307342
name: Musl-amd64
308343
runs-on: ubuntu-latest
@@ -651,6 +686,7 @@ jobs:
651686
- linux-armv6
652687
- linux-riscv64
653688
- linux-ppc64le
689+
- linux-s390x
654690
- musl-amd64
655691
- macos-universal
656692
- freebsd-amd64

0 commit comments

Comments
 (0)