1818 - target : x86_64-unknown-linux-musl
1919 os : ubuntu-latest
2020 name : linux-x86_64
21+ - target : aarch64-unknown-linux-musl
22+ os : ubuntu-latest
23+ name : linux-aarch64
2124 - target : aarch64-apple-darwin
2225 os : macos-latest
2326 name : darwin-aarch64
@@ -28,17 +31,28 @@ jobs:
2831 steps :
2932 - uses : actions/checkout@v4
3033
31- - name : Install musl tools (Linux)
34+ - name : Install musl tools (Linux x86_64 )
3235 if : matrix.target == 'x86_64-unknown-linux-musl'
3336 run : |
3437 sudo apt-get update
3538 sudo apt-get install -y musl-tools
3639
40+ - name : Install musl tools (Linux aarch64)
41+ if : matrix.target == 'aarch64-unknown-linux-musl'
42+ run : |
43+ sudo apt-get update
44+ sudo apt-get install -y musl-tools gcc-aarch64-linux-gnu
45+
3746 - name : Install Rust
3847 uses : dtolnay/rust-toolchain@stable
3948 with :
4049 targets : ${{ matrix.target }}
4150
51+ - name : Configure cross-compilation (Linux aarch64)
52+ if : matrix.target == 'aarch64-unknown-linux-musl'
53+ run : |
54+ echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
55+
4256 - name : Build
4357 run : cargo build --release --target ${{ matrix.target }}
4458
@@ -102,6 +116,7 @@ jobs:
102116 echo "### CLI Binaries" >> release_notes.md
103117 echo "- \`pg0-darwin-aarch64\` - macOS Apple Silicon" >> release_notes.md
104118 echo "- \`pg0-linux-x86_64\` - Linux x86_64 (statically linked, works on any Linux distribution)" >> release_notes.md
119+ echo "- \`pg0-linux-aarch64\` - Linux ARM64/aarch64 (statically linked, works on any Linux distribution)" >> release_notes.md
105120 echo "- \`pg0-windows-x86_64.exe\` - Windows x64" >> release_notes.md
106121 echo "" >> release_notes.md
107122 echo "### Bundled Components" >> release_notes.md
0 commit comments