mirror of
https://github.com/theryangeary/choose
synced 2025-02-16 17:28:24 +00:00
add aarch64 build to release
This commit is contained in:
parent
cc9482cdbd
commit
bcf9798981
1 changed files with 20 additions and 0 deletions
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
|
@ -30,6 +30,15 @@ jobs:
|
|||
rustup target add x86_64-unknown-linux-musl
|
||||
cargo build --verbose --release --target x86_64-unknown-linux-musl
|
||||
|
||||
- name: Build aarch64-apple-darwin
|
||||
run: |
|
||||
curl -L https://github.com/roblabla/MacOSX-SDKs/releases/download/13.3/MacOSX13.3.sdk.tar.xz | tar xJ
|
||||
export SDKROOT=$(pwd)/MacOSX13.3.sdk/
|
||||
export PATH=$PATH:~/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/bin/
|
||||
export CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER=rust-lld
|
||||
rustup target add aarch64-apple-darwin
|
||||
cargo build --verbose --release --target aarch64-apple-darwin
|
||||
|
||||
- name: Create GitHub release
|
||||
id: create-release
|
||||
uses: actions/create-release@v1
|
||||
|
@ -64,5 +73,16 @@ jobs:
|
|||
asset_name: choose-x86_64-unknown-linux-musl
|
||||
asset_content_type: application/raw
|
||||
|
||||
- name: Upload aarch64 binary to GitHub release
|
||||
id: upload-aarch64-apple-darwin-release-asset
|
||||
uses: actions/upload-release-asset@v1.0.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create-release.outputs.upload_url }}
|
||||
asset_path: target/aarch64-apple-darwin/release/choose
|
||||
asset_name: choose-aarch64-apple-darwin
|
||||
asset_content_type: application/raw
|
||||
|
||||
- name: Create crates.io release
|
||||
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
|
||||
|
|
Loading…
Add table
Reference in a new issue