Skip to content

Commit dc482de

Browse files
committed
Include binaires in release.
1 parent 850fb0e commit dc482de

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

.github/workflows/release.yaml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,45 @@ name: release
22
on:
33
release:
44
types: [published]
5-
5+
6+
permissions:
7+
contents: write
8+
packages: write
9+
610
jobs:
11+
binary:
12+
strategy:
13+
matrix:
14+
include:
15+
- os: ubuntu-latest
16+
target: x86_64-unknown-linux-gnu
17+
- os: windows-latest
18+
target: x86_64-apple-darwin
19+
- os: macos-latest
20+
target: x86_64-pc-windows-msvc
21+
runs-on: ${{ matrix.os }}
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: actions-rs/toolchain@v1
25+
with:
26+
target: ${{ matrix.target }}
27+
toolchain: stable
28+
- run: cargo clippy
29+
- run: cargo build --release
30+
- if: matrix.os == 'ubuntu-latest'
31+
run: mv target/release/kitops target/release/kitops-x86_64-unknown-linux-gnu
32+
- if: matrix.os == 'windows-latest'
33+
run: mv target/release/kitops.exe target/release/kitops-x86_64-pc-windows-msvc.exe
34+
- if: matrix.os == 'macos-latest'
35+
run: mv target/release/kitops target/release/kitops-x86_64-apple-darwin
36+
- uses: softprops/action-gh-release@v2
37+
with:
38+
files: target/release/kitops*
739
image:
840
runs-on: ubuntu-latest
941
steps:
1042
- name: Clone repo
11-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
1244
- name: Prepare
1345
id: prep
1446
run: |

0 commit comments

Comments
 (0)