This repository was archived by the owner on Jan 30, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 2727 sudo apt-get install -y musl-tools
2828 - os : ubuntu-22.04
2929 target : aarch64-unknown-linux-musl
30- deps : |
31- sudo apt-get update
32- sudo apt-get install -y wget
33- wget -q https://musl.cc/aarch64-linux-musl-cross.tgz
34- tar xzf aarch64-linux-musl-cross.tgz
35- echo "$PWD/aarch64-linux-musl-cross/bin" >> $GITHUB_PATH
30+ use_cross : true
3631 - os : macos-latest
3732 target : x86_64-apple-darwin
3833 - os : macos-latest
@@ -55,11 +50,11 @@ jobs:
5550 - name : Set CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER
5651 if : matrix.target == 'aarch64-unknown-linux-gnu'
5752 run : echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
58- - name : Set CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER
59- if : matrix.target == 'aarch64-unknown-linux-musl'
60- run : echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-musl-gcc" >> $GITHUB_ENV
53+ - name : Install cross
54+ if : matrix.use_cross
55+ run : cargo install cross --git https://github.com/cross-rs/cross
6156 - name : Build
62- run : cargo build --release --target ${{ matrix.target }}
57+ run : ${{ matrix.use_cross && 'cross' || ' cargo' }} build --release --target ${{ matrix.target }}
6358 - name : Create pem and certificate.der files
6459 if : matrix.os == 'macos-latest'
6560 run : |
You can’t perform that action at this time.
0 commit comments