mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-06 19:35:13 +02:00
Add support for aarch64-apple-darwin target and define binary name in release build workflow
This commit is contained in:
parent
aecf37163f
commit
34e8174003
1 changed files with 5 additions and 1 deletions
6
.github/workflows/release-build.yml
vendored
6
.github/workflows/release-build.yml
vendored
|
|
@ -7,6 +7,9 @@ on:
|
|||
permissions:
|
||||
contents: write
|
||||
|
||||
env:
|
||||
BIN_NAME: nyx
|
||||
|
||||
jobs:
|
||||
build-and-upload:
|
||||
strategy:
|
||||
|
|
@ -14,6 +17,7 @@ jobs:
|
|||
target:
|
||||
- x86_64-unknown-linux-gnu
|
||||
- x86_64-apple-darwin
|
||||
- aarch64-apple-darwin
|
||||
- x86_64-pc-windows-msvc
|
||||
runs-on: ${{ matrix.target == 'x86_64-pc-windows-msvc' && 'windows-latest' || (matrix.target == 'x86_64-apple-darwin' && 'macos-latest' || 'ubuntu-latest') }}
|
||||
|
||||
|
|
@ -32,7 +36,7 @@ jobs:
|
|||
run: rustup target add ${{ matrix.target }}
|
||||
|
||||
- name: Build (optimized)
|
||||
run: cargo build --release --target ${{ matrix.target }}
|
||||
run: cargo build --release --bin ${{ env.BIN_NAME }} --target ${{ matrix.target }}
|
||||
|
||||
- name: Package binary
|
||||
shell: bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue