ci: add aarch64-pc-windows-msvc

This commit is contained in:
b1n
2024-06-29 20:55:53 +08:00
parent d57b5f216c
commit c5cfb7e082
2 changed files with 12 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
[target.x86_64-pc-windows-msvc] [target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"] rustflags = ["-C", "target-feature=+crt-static"]
[target.aarch64-pc-windows-msvc]
rustflags = ["-C", "target-feature=+crt-static"]
[target.aarch64-unknown-linux-gnu] [target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc" linker = "aarch64-linux-gnu-gcc"

View File

@@ -18,14 +18,20 @@ jobs:
with: with:
toolchain: toolchain:
stable-x86_64-pc-windows-msvc stable-x86_64-pc-windows-msvc
- run: cargo b -r targets: x86_64-pc-windows-msvc, aarch64-pc-windows-msvc
- run: mv target/release/pumpbin.exe PumpBin-x86_64-pc-windows-msvc.exe - run: cargo build --release --target=x86_64-pc-windows-msvc
- run: mv target/release/maker.exe PumpBin-Maker-x86_64-pc-windows-msvc.exe - run: cargo build --release --target=aarch64-pc-windows-msvc
- run: mv target/x86_64-pc-windows-msvc/release/pumpbin.exe PumpBin-x86_64-pc-windows-msvc.exe
- run: mv target/x86_64-pc-windows-msvc/release/maker.exe PumpBin-Maker-x86_64-pc-windows-msvc.exe
- run: mv target/aarch64-pc-windows-msvc/release/pumpbin.exe PumpBin-aarch64-pc-windows-msvc.exe
- run: mv target/aarch64-pc-windows-msvc/release/maker.exe PumpBin-Maker-aarch64-pc-windows-msvc.exe
- uses: softprops/action-gh-release@v2 - uses: softprops/action-gh-release@v2
with: with:
files: | files: |
PumpBin-x86_64-pc-windows-msvc.exe PumpBin-x86_64-pc-windows-msvc.exe
PumpBin-Maker-x86_64-pc-windows-msvc.exe PumpBin-Maker-x86_64-pc-windows-msvc.exe
PumpBin-aarch64-pc-windows-msvc.exe
PumpBin-Maker-aarch64-pc-windows-msvc.exe
build-macos: build-macos:
name: build-macos name: build-macos