From 8659c450a001cbec3b5138131366479bf97e2d8f Mon Sep 17 00:00:00 2001 From: goenning Date: Thu, 12 Sep 2024 20:22:54 +0100 Subject: [PATCH] try again --- .github/workflows/release.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 89bc9b3..cbff6e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,18 +7,26 @@ on: jobs: build: + name: ${{ matrix.target }} runs-on: ${{ matrix.os }} strategy: matrix: include: - os: ubuntu-latest - artifact_name: target/release/kubectl-config-doctor + target: x86_64-unknown-linux-gnu + bin_name: kubectl-config-doctor asset_name: kubectl-config-doctor-linux-amd64.tar.gz - os: windows-latest - artifact_name: target/release/kubectl-config-doctor.exe + target: x86_64-pc-windows-msvc + bin_name: kubectl-config-doctor.exe asset_name: kubectl-config-doctor-windows-amd64.zip - os: macos-latest - artifact_name: target/release/kubectl-config-doctor + target: aarch64-apple-darwin + bin_name: kubectl-config-doctor + asset_name: kubectl-config-doctor-darwin-arm64.tar.gz + - os: macos-latest + target: x86_64-apple-darwin + bin_name: kubectl-config-doctor asset_name: kubectl-config-doctor-darwin-amd64.tar.gz steps: @@ -32,7 +40,7 @@ jobs: override: true - name: Build the project - run: cargo build --release --locked + run: cargo build --release --locked --target ${{ matrix.target }} - name: Create tar.gz archive (Linux/macOS) if: runner.os != 'Windows' @@ -47,6 +55,6 @@ jobs: - name: Upload binaries to release uses: svenstaro/upload-release-action@v2 with: - file: target/release/${{ matrix.artifact_name }} + file: ${{ matrix.target }}/release/${{ matrix.artifact_name }} asset_name: ${{ matrix.asset_name }} tag: ${{ github.ref }} \ No newline at end of file