Add support for aarch64-apple-darwin target and define binary name in release build workflow

This commit is contained in:
elipeter 2025-06-24 22:22:03 +02:00
parent aecf37163f
commit 34e8174003

View file

@ -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