Skip to content

Commit 29f9eca

Browse files
committed
add aarch64-unknown-linux-gcc build to release
1 parent 86402c8 commit 29f9eca

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[target.x86_64-pc-windows-gnu]
22
linker = "x86_64-w64-mingw32-gcc"
3+
4+
[target.aarch64-unknown-linux-gnu]
5+
linker = "aarch64-linux-gnu-gcc"

.github/workflows/release.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ jobs:
3030
rustup target add x86_64-unknown-linux-musl
3131
cargo build --verbose --release --target x86_64-unknown-linux-musl
3232
33+
- name: Build aarch64-unknown-linux-gnu
34+
run: |
35+
sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu
36+
rustup target add aarch64-unknown-linux-gnu
37+
cargo build --verbose --release --target aarch64-unknown-linux-gnu
38+
3339
- name: Build aarch64-apple-darwin
3440
run: |
3541
curl -L https://github.com/roblabla/MacOSX-SDKs/releases/download/13.3/MacOSX13.3.sdk.tar.xz | tar xJ
@@ -79,7 +85,18 @@ jobs:
7985
asset_name: choose-x86_64-unknown-linux-musl
8086
asset_content_type: application/raw
8187

82-
- name: Upload aarch64 binary to GitHub release
88+
- name: Upload aarch64 linux binary to GitHub release
89+
id: upload-aarch64-unknown-linux-gnu-release-asset
90+
uses: actions/upload-release-asset@v1.0.1
91+
env:
92+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
93+
with:
94+
upload_url: ${{ steps.create-release.outputs.upload_url }}
95+
asset_path: target/aarch64-unknown-linux-gnu/release/choose
96+
asset_name: choose-aarch64-unknown-linux-gnu
97+
asset_content_type: application/raw
98+
99+
- name: Upload aarch64 darwin binary to GitHub release
83100
id: upload-aarch64-apple-darwin-release-asset
84101
uses: actions/upload-release-asset@v1.0.1
85102
env:
@@ -90,7 +107,7 @@ jobs:
90107
asset_name: choose-aarch64-apple-darwin
91108
asset_content_type: application/raw
92109

93-
- name: Upload aarch64 binary to GitHub release
110+
- name: Upload mingw binary to GitHub release
94111
id: upload-x86_64-pc-windows-gnu-release-asset
95112
uses: actions/upload-release-asset@v1.0.1
96113
env:

0 commit comments

Comments
 (0)