summaryrefslogtreecommitdiffstats
path: root/.github/workflows/alt-architectures.yml
blob: 50d29d9496f0957304cb55501f2727707d687028 (plain)
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
name: '[arm,ppc,ricsv] architecture builds'
on:
  workflow_dispatch:
    branches: [ master, stable* ]
  schedule:
    - cron: '30 5 * * SUN'

jobs:
  build_job:
    runs-on: ubuntu-latest
    name: "Test on ${{ matrix.distro }}/${{ matrix.arch }}"
    strategy:
      fail-fast: false
      matrix:
        include:
          - arch: armv6
            distro: bullseye
          - arch: armv7
            distro: bullseye
          - arch: aarch64
            distro: bullseye
          - arch: s390x
            distro: bullseye
          - arch: ppc64le
            distro: bullseye
          - arch: riscv64
            distro: ubuntu22.04
    steps:
      - uses: actions/checkout@v4
      - uses: uraimo/run-on-arch-action@master
        name: "Run tests"
        id: build
        with:
          arch: ${{ matrix.arch }}
          distro: ${{ matrix.distro }}
          githubToken: ${{ github.token }}
          env: |
            CTEST_OUTPUT_ON_FAILURE: 1
            WLOG_LEVEL: 'trace'
          install: |
            apt-get update -q -y
            apt-get install -q -y \
              libxrandr-dev \
              libxinerama-dev \
              libusb-1.0-0-dev \
              xserver-xorg-dev \
              libswscale-dev \
              libswresample-dev \
              libavutil-dev \
              libavcodec-dev \
              libcups2-dev \
              libpulse-dev \
              libasound2-dev \
              libpcsclite-dev \
              xsltproc \
              libxcb-cursor-dev \
              libxcursor-dev \
              libcairo2-dev \
              libfaad-dev \
              libjpeg-dev \
              libgsm1-dev \
              ninja-build \
              libxfixes-dev \
              libxkbcommon-dev \
              libwayland-dev \
              libpam0g-dev \
              libxdamage-dev \
              libxcb-damage0-dev \
              libxtst-dev \
              libfuse3-dev \
              libsystemd-dev \
              libcairo2-dev \
              libsoxr-dev \
              libsdl2-dev \
              docbook-xsl \
              libkrb5-dev \
              libcjson-dev \
              libpkcs11-helper1-dev \
              libsdl2-ttf-dev \
              libwebkit2gtk-4.0-dev \
              libopus-dev \
              libwebp-dev \
              libpng-dev \
              libjpeg-dev \
              liburiparser-dev \
              cmake \
              clang
          run: |
            cmake -GNinja \
              -C ci/cmake-preloads/config-linux-all.txt \
              -B ci-build \
              -S . \
              -DCMAKE_INSTALL_PREFIX=/tmp/ci-test \
              -DCMAKE_C_COMPILER=/usr/bin/clang \
              -DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
              -DUSE_UNWIND=OFF \
              -DUSE_EXECINFO=OFF \
              -DWITH_SANITIZE_ADDRESS=OFF
            cmake --build ci-build --parallel $(nproc) --target install
            cmake --build ci-build --parallel $(nproc) --target test