Skip to content

Commit 2ac4e95

Browse files
committed
release builder
1 parent f076e3a commit 2ac4e95

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)