Skip to content

Commit cb7835c

Browse files
committedJul 18, 2022
ci: add auto build
1 parent 1ae7f4e commit cb7835c

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+
name: Release new version
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/rust-build.action@latest
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
RUSTTARGET: ${{ matrix.target }}
28+
ARCHIVE_TYPES: ${{ matrix.archive }}

0 commit comments

Comments
 (0)