Skip to content

Commit

Permalink
Include binaires in release.
Browse files Browse the repository at this point in the history
  • Loading branch information
bittrance committed Mar 15, 2024
1 parent 850fb0e commit 6e4e172
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,45 @@ name: release
on:
release:
types: [published]


permissions:
contents: write
packages: write

jobs:
binary:
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
target: x86_64-apple-darwin
- os: macos-latest
target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
target: ${{ matrix.target }}
toolchain: stable
- run: cargo clippy
- run: cargo build --release
- if: matrix.os == 'ubuntu-latest'
run: mv target/release/kitops target/release/kitops-x86_64-unknown-linux-gnu
- if: matrix.os == 'windows-latest'
run: mv target/release/kitops.exe target/release/kitops-x86_64-pc-windows-msvc.exe
- if: matrix.os == 'macos-latest'
run: mv target/release/kitops target/release/kitops-x86_64-apple-darwin
- uses: softprops/action-gh-release@v2
with:
files: target/release/kitops-*
image:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Prepare
id: prep
run: |
Expand Down

0 comments on commit 6e4e172

Please sign in to comment.