]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
ci: Run build_and_test on Linux on ARM too
authorMartin Storsjö <martin@martin.st>
Tue, 10 Jun 2025 10:40:32 +0000 (13:40 +0300)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 5 Aug 2025 17:38:01 +0000 (19:38 +0200)
.github/workflows/build.yaml

index b0dfe02a4d8d70bc579440720ee317fb1e151acb..37ae9065636eb8327965521fc6a33927ee305b19 100644 (file)
@@ -46,6 +46,10 @@ jobs:
             compiler: clang
             version: "15"
 
+          - os: ubuntu-22.04-arm
+            compiler: gcc
+            version: "11"
+
           - os: ubuntu-24.04
             compiler: gcc
             version: "13"
@@ -66,6 +70,10 @@ jobs:
             compiler: clang
             version: "18"
 
+          - os: ubuntu-24.04-arm
+            compiler: gcc
+            version: "13"
+
           - os: macOS-13
             compiler: xcode
             version: "15.0.1"
@@ -108,7 +116,11 @@ jobs:
             echo "CC=gcc-${{ matrix.version }}" >> $GITHUB_ENV
             echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV
 
-            sudo apt-get install -y g++-${{ matrix.version }} g++-${{ matrix.version }}-multilib
+            sudo apt-get install -y g++-${{ matrix.version }}
+            if [ "${{ !endsWith(matrix.os, '-arm') }}" = "true" ]; then
+              # The -multilib packages are only available on x86.
+              sudo apt-get install -y g++-${{ matrix.version }}-multilib
+            fi
             if [ "${{ matrix.version }}" = 8 ]; then
               # The compilation test in StdFilesystem.cmake doesn't work when
               # GCC 9 is installed as well, so need to force linking with