Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
goenning committed Sep 12, 2024
1 parent 56bd4dd commit 8659c45
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'
Expand All @@ -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 }}

0 comments on commit 8659c45

Please sign in to comment.