File tree Expand file tree Collapse file tree 1 file changed +34
-2
lines changed
Expand file tree Collapse file tree 1 file changed +34
-2
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,45 @@ name: release
22on :
33 release :
44 types : [published]
5-
5+
6+ permissions :
7+ contents : write
8+ packages : write
9+
610jobs :
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 : |
You can’t perform that action at this time.
0 commit comments