Skip to content

Commit ec05ab2

Browse files
authored
Create release.yml
1 parent e1c6347 commit ec05ab2

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/release.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
on:
2+
release:
3+
types: [created]
4+
push:
5+
6+
7+
jobs:
8+
release:
9+
name: release ${{ matrix.target }} (with non-required env)
10+
runs-on: ubuntu-latest
11+
if: github.event_name == 'release'
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
include:
16+
- target: x86_64-pc-windows-gnu
17+
archive: zip
18+
- target: x86_64-unknown-linux-musl
19+
archive: tar.gz
20+
- target: x86_64-apple-darwin
21+
archive: zip
22+
- target: wasm32-wasi
23+
archive: zip tar.gz
24+
steps:
25+
- uses: actions/checkout@master
26+
- name: Compile and release
27+
uses: rust-build/rust-build.action@master
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
release_without_not_required:
31+
name: release ${{ matrix.target }}
32+
runs-on: ubuntu-latest
33+
strategy:
34+
fail-fast: true
35+
matrix:
36+
target: [x86_64-unknown-linux-musl]
37+
steps:
38+
- uses: actions/checkout@master
39+
- name: Compile and release
40+
uses: rust-build/rust-build.action@master
41+
with:
42+
RUSTTARGET: ${{ matrix.target }}
43+
UPLOAD_MODE: none
44+
- name: Checkout output
45+
run: ls -laR

0 commit comments

Comments
 (0)