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