File tree Expand file tree Collapse file tree 1 file changed +40
-15
lines changed
Expand file tree Collapse file tree 1 file changed +40
-15
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ permissions :
4+ contents : write
5+
16on :
2- release :
3- types : [created]
7+ push :
8+ tags :
9+ - v[0-9]+.*
410
511jobs :
6- release :
7- name : release ${{ matrix.target }}
12+ create-release :
813 runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : taiki-e/create-gh-release-action@v1
17+ with :
18+ token : ${{ secrets.GITHUB_TOKEN }}
19+
20+ upload-assets :
21+ needs : create-release
922 strategy :
10- fail-fast : false
1123 matrix :
12- target : [x86_64-pc-windows-gnu, x86_64-unknown-linux-gnu, x86_64-apple-darwin]
24+ include :
25+ - target : x86_64-unknown-linux-gnu
26+ os : ubuntu-latest
27+ - target : aarch64-unknown-linux-gnu
28+ os : ubuntu-latest
29+ - target : x86_64-apple-darwin
30+ os : macos-latest
31+ - target : aarch64-apple-darwin
32+ os : macos-latest
33+ - target : x86_64-pc-windows-msvc
34+ os : windows-latest
35+ runs-on : ${{ matrix.os }}
1336 steps :
14- - uses : actions/checkout@master
15- - name : Compile and release
16- uses : rust-build/rust-build.action@latest
17- env :
18- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19- RUSTTARGET : ${{ matrix.target }}
20- EXTRA_FILES : " README.md LICENSE"
21- TOOLCHAIN_VERSION : nightly
22- ARCHIVE_TYPES : zip tar.gz
37+ - uses : actions/checkout@v4
38+
39+ # Upload Rust binaries
40+ - uses : taiki-e/upload-rust-binary-action@v1
41+ with :
42+ bin : highlight-assertions
43+ target : ${{ matrix.target }}
44+ include : LICENSE
45+ tar : unix
46+ zip : windows
47+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments