Skip to content

Commit 3993f72

Browse files
committed
Add action to build binary files for a release.
1 parent 7b1ff35 commit 3993f72

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on:
2+
release:
3+
types: [created]
4+
5+
jobs:
6+
release:
7+
name: release ${{ matrix.target }}
8+
runs-on: ubuntu-latest
9+
permissions: write-all
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
include:
14+
- target: x86_64-pc-windows-gnu
15+
archive: zip
16+
- target: x86_64-unknown-linux-musl
17+
archive: tar.gz
18+
- target: x86_64-apple-darwin
19+
archive: zip
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 }}
29+
MINIFY: "yes"

0 commit comments

Comments
 (0)