Skip to content

Commit a4fd34a

Browse files
committed
github action: add release.yml
1 parent 29235c8 commit a4fd34a

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/workflows/rust.yml renamed to .github/workflows/build-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust
1+
name: Build and test
22

33
on:
44
push:
@@ -10,7 +10,7 @@ env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
13-
build:
13+
build-and-test:
1414

1515
runs-on: ubuntu-latest
1616

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
target: [x86_64-unknown-linux-musl, x86_64-apple-darwin]
13+
steps:
14+
- uses: actions/checkout@master
15+
- name: Compile and release
16+
uses: rust-build/[email protected]
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
with:
20+
RUSTTARGET: ${{ matrix.target }}

0 commit comments

Comments
 (0)