Skip to content

Commit 2d7bd9c

Browse files
committed
Add release action
1 parent d362fa0 commit 2d7bd9c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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
17+
- target: x86_64-apple-darwin
18+
archive: zip
19+
steps:
20+
- uses: actions/checkout@master
21+
- name: Compile and release
22+
uses: rust-build/rust-build.action@latest
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
RUSTTARGET: ${{ matrix.target }}
26+
ARCHIVE_TYPES: ${{ matrix.archive }}

0 commit comments

Comments
 (0)