1919 target : x86_64-unknown-linux-musl
2020 asset_name : fbqueue-linux-x64.tar.gz
2121 example_dir : linux
22+ - os : ubuntu-latest
23+ target : aarch64-unknown-linux-musl
24+ asset_name : fbqueue-linux-arm64.tar.gz
25+ example_dir : linux
2226 - os : windows-latest
2327 target : x86_64-pc-windows-msvc
2428 asset_name : fbqueue-windows-x64.zip
@@ -30,32 +34,33 @@ jobs:
3034 - name : Install Rust
3135 run : rustup update stable && rustup target add ${{ matrix.target }}
3236
33- - name : Install MUSL (Linux only)
37+ - name : Install MUSL and Cross-compilers (Linux only)
3438 if : runner.os == 'Linux'
35- run : sudo apt-get install -y musl-tools
39+ run : sudo apt-get update && sudo apt-get install -y musl-tools gcc-aarch64-linux-gnu
3640
3741 - name : Build
3842 run : cargo build --release --target ${{ matrix.target }}
3943
4044 - name : Package (Linux)
4145 if : runner.os == 'Linux'
4246 run : |
43- mkdir dist
44- cp target/${{ matrix.target }}/release/fbqueue .
45- tar -czvf dist/${{ matrix.asset_name }} \
46- fbqueue \
47- README.md \
48- MANUAL.md \
49- PBS_COMPATIBILITY.md \
50- examples/${{ matrix.example_dir }}
47+ mkdir -p dist/fbqueue
48+ cp target/${{ matrix.target }}/release/fbqueue dist/fbqueue/
49+ cp README.md MANUAL.md PBS_COMPATIBILITY.md dist/fbqueue/
50+ cp -r examples/${{ matrix.example_dir }} dist/fbqueue/examples
51+ cd dist
52+ tar -czvf ${{ matrix.asset_name }} fbqueue
5153
5254 - name : Package (Windows)
5355 if : runner.os == 'Windows'
5456 shell : pwsh
5557 run : |
56- New-Item -ItemType Directory -Path dist
57- Copy-Item "target\${{ matrix.target }}\release\fbqueue.exe" .
58- Compress-Archive -Path "fbqueue.exe", "README.md", "MANUAL.md", "examples\windows" -DestinationPath "dist\${{ matrix.asset_name }}"
58+ New-Item -ItemType Directory -Path dist\fbqueue
59+ Copy-Item "target\${{ matrix.target }}\release\fbqueue.exe" -Destination dist\fbqueue\
60+ Copy-Item "README.md", "MANUAL.md" -Destination dist\fbqueue\
61+ Copy-Item -Path "examples\windows" -Destination dist\fbqueue\examples -Recurse
62+ cd dist
63+ Compress-Archive -Path "fbqueue" -DestinationPath "${{ matrix.asset_name }}"
5964
6065 - name : Upload Release Asset
6166 uses : softprops/action-gh-release@v1
0 commit comments