mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 12:35:28 +00:00
add CI build for Apple Silicon
This commit is contained in:
parent
b838661dde
commit
2853ba5faf
1 changed files with 24 additions and 1 deletions
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
|
|
@ -89,7 +89,7 @@ jobs:
|
||||||
asset_path: agate.zip
|
asset_path: agate.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
||||||
build_macos:
|
build_macos_x86_64:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
needs: create_release
|
needs: create_release
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -109,3 +109,26 @@ jobs:
|
||||||
asset_path: ./agate.gz
|
asset_path: ./agate.gz
|
||||||
asset_name: agate.x86_64-apple-darwin.gz
|
asset_name: agate.x86_64-apple-darwin.gz
|
||||||
asset_content_type: application/gzip
|
asset_content_type: application/gzip
|
||||||
|
|
||||||
|
build_macos_arm:
|
||||||
|
runs-on: macos-latest
|
||||||
|
needs: create_release
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: install toolchain
|
||||||
|
run: rustup target add aarch64-apple-darwin
|
||||||
|
- name: Build
|
||||||
|
run: SDKROOT=$(xcrun -sdk macosx --show-sdk-path) MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx --show-sdk-platform-version) cargo build --verbose --release --target=aarch64-apple-darwin
|
||||||
|
- name: strip names
|
||||||
|
run: strip target/aarch64-apple-darwin/release/agate
|
||||||
|
- name: compress
|
||||||
|
run: gzip -c target/aarch64-apple-darwin/release/agate > ./agate.gz
|
||||||
|
- name: upload release asset darwin
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ needs.create_release.outputs.upload_url }}
|
||||||
|
asset_path: ./agate.gz
|
||||||
|
asset_name: agate.aarch64-apple-darwin.gz
|
||||||
|
asset_content_type: application/gzip
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue