@@ -21,15 +21,12 @@ jobs:
2121 - target : aarch64-apple-darwin
2222 os : macos-latest
2323 artifact : symposium-darwin-arm64
24- - target : x86_64-unknown-linux-gnu
24+ - target : x86_64-unknown-linux-musl
2525 os : ubuntu-latest
2626 artifact : symposium-linux-x64
27- - target : aarch64-unknown-linux-gnu
27+ - target : aarch64-unknown-linux-musl
2828 os : ubuntu-latest
2929 artifact : symposium-linux-arm64
30- - target : x86_64-unknown-linux-musl
31- os : ubuntu-latest
32- artifact : symposium-linux-x64-musl
3330 - target : x86_64-pc-windows-msvc
3431 os : windows-latest
3532 artifact : symposium-windows-x64
@@ -48,22 +45,26 @@ jobs:
4845 with :
4946 targets : ${{ matrix.target }}
5047
51- - name : Install cross-compilation tools (Linux ARM64 )
52- if : matrix.target == 'aarch64 -unknown-linux-gnu '
48+ - name : Install musl tools (x86_64 )
49+ if : matrix.target == 'x86_64 -unknown-linux-musl '
5350 run : |
5451 sudo apt-get update
55- sudo apt-get install -y gcc-aarch64-linux-gnu
52+ sudo apt-get install -y musl-tools
5653
57- - name : Install musl tools
58- if : matrix.target == 'x86_64 -unknown-linux-musl'
54+ - name : Install musl cross-compilation tools (aarch64)
55+ if : matrix.target == 'aarch64 -unknown-linux-musl'
5956 run : |
6057 sudo apt-get update
61- sudo apt-get install -y musl-tools
58+ sudo apt-get install -y musl-tools gcc-aarch64-linux-gnu musl-dev
59+ # Install aarch64 musl cross toolchain
60+ wget -q https://musl.cc/aarch64-linux-musl-cross.tgz
61+ tar -xzf aarch64-linux-musl-cross.tgz
62+ echo "$PWD/aarch64-linux-musl-cross/bin" >> $GITHUB_PATH
6263
6364 - name : Build
6465 run : cargo build --release --target ${{ matrix.target }} -p symposium-acp-agent
6566 env :
66- CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER : aarch64-linux-gnu -gcc
67+ CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER : aarch64-linux-musl -gcc
6768
6869 - name : Package (Unix)
6970 if : runner.os != 'Windows'
0 commit comments