forked from diasurgical/DevilutionX
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paths390x_qemu_big_endian_tests.yml
More file actions
45 lines (38 loc) · 1.33 KB
/
s390x_qemu_big_endian_tests.yml
File metadata and controls
45 lines (38 loc) · 1.33 KB
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
name: s390x qemu tests (big-endian)
# The test suite takes ~50m to run so we only trigger it manually
on:
release:
types: [published]
paths-ignore:
- '*.md'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
big-endian-qemu:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache .ccache
uses: actions/cache@v3
with:
path: .ccache
key: ${{ github.workflow }}-v1-${{ github.sha }}
restore-keys: ${{ github.workflow }}-v1-
- name: Get the qemu container
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Run tests
run: >
docker run --rm --interactive --mount type=bind,source=$(pwd),target=/host s390x/alpine sh -c
"
apk add --update-cache g++ ninja cmake ccache sdl2-dev sdl2_image-dev fmt-dev libpng-dev bzip2-dev gtest-dev wget &&
cd /host &&
export CCACHE_DIR=/host/.ccache &&
cmake -S. -Bbuild -G Ninja -DNONET=ON -DNOSOUND=ON &&
wget -nv -nc https://github.com/diasurgical/devilutionx-assets/releases/download/v2/spawn.mpq -P build &&
cmake --build build -j $(nproc) &&
ctest --test-dir build --output-on-failure -j $(nproc)
"