Skip to content

Commit f708a1a

Browse files
committed
add release action
1 parent 53a0ae6 commit f708a1a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
on:
2+
release:
3+
types: [created]
4+
5+
jobs:
6+
release:
7+
name: release ${{ matrix.target }}
8+
runs-on: ubuntu-latest
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
include:
13+
- target: x86_64-pc-windows-gnu
14+
archive: zip
15+
- target: x86_64-unknown-linux-musl
16+
archive: tar.gz tar.xz tar.zst
17+
- target: x86_64-apple-darwin
18+
archive: zip
19+
20+
steps:
21+
- uses: actions/checkout@master
22+
- name: Compile and release
23+
uses: rust-build/[email protected]
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
RUSTTARGET: ${{ matrix.target }}
28+
ARCHIVE_TYPES: ${{ matrix.archive }}

0 commit comments

Comments
 (0)