From 34e8174003500ecd0a292f02295e646850f0a576 Mon Sep 17 00:00:00 2001 From: elipeter Date: Tue, 24 Jun 2025 22:22:03 +0200 Subject: [PATCH] Add support for aarch64-apple-darwin target and define binary name in release build workflow --- .github/workflows/release-build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index df018fe0..09387bed 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -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