Browse Source

.cargo/config: use musl-cross on x86_64 as well

This allows us to run virtualized integration tests on macOS hosts.

Bump Ubuntu to 24.04 because we seem to be getting miscompilation on
x86_64 otherwise (when using `x86_64-linux-musl-gcc`). Add `apt install
liblzma-dev` since it doesn't seem to be present in ubuntu-24.04.
Tamir Duberstein 3 weeks ago
parent
commit
d82ed60795
2 changed files with 10 additions and 10 deletions
  1. 3 0
      .cargo/config.toml
  2. 7 10
      .github/workflows/ci.yml

+ 3 - 0
.cargo/config.toml

@@ -10,6 +10,9 @@ linker = "arm-linux-gnueabihf-gcc"
 [target.aarch64-unknown-linux-musl]
 linker = "aarch64-linux-musl-gcc"
 
+[target.x86_64-unknown-linux-musl]
+linker = "x86_64-linux-musl-gcc"
+
 [target.powerpc64le-unknown-linux-gnu]
 linker = "powerpc64le-linux-gnu-gcc"
 

+ 7 - 10
.github/workflows/ci.yml

@@ -215,9 +215,9 @@ jobs:
 
           # We don't use ubuntu-latest because we care about the apt packages available.
           - target: x86_64-unknown-linux-gnu
-            os: ubuntu-22.04
+            os: ubuntu-24.04
           - target: aarch64-unknown-linux-gnu
-            os: ubuntu-22.04-arm
+            os: ubuntu-24.04-arm
     runs-on: ${{ matrix.os }}
     steps:
       - uses: actions/checkout@v5
@@ -226,17 +226,14 @@ jobs:
 
       - name: Install prerequisites
         if: runner.os == 'Linux'
-        # ubuntu-22.04 comes with clang 13-15[0]; support for signed and 64bit
-        # enum values was added in clang 15[1] which isn't in `$PATH`.
-        #
-        # [0] https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md
-        #
-        # [1] https://github.com/llvm/llvm-project/commit/dc1c43d
         run: |
           set -euxo pipefail
           sudo apt update
-          sudo apt -y install lynx qemu-system-{arm,x86} musl-tools
-          echo /usr/lib/llvm-15/bin >> $GITHUB_PATH
+          sudo apt -y install \
+            liblzma-dev \
+            lynx \
+            musl-tools \
+            qemu-system-{arm,x86}
 
       - name: Install prerequisites
         if: runner.os == 'macOS'