Skip to content

Commit 91449fe

Browse files
author
messica
committed
ci: 🎡 add release action
1 parent 1bc21ef commit 91449fe

File tree

4 files changed

+225
-364
lines changed

4 files changed

+225
-364
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+
on:
2+
release:
3+
types: [created]
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
release:
10+
name: release ${{ matrix.target }}
11+
runs-on: ubuntu-latest
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 tar.xz tar.zst
20+
# - target: x86_64-apple-darwin
21+
# archive: zip
22+
steps:
23+
- uses: actions/checkout@master
24+
- name: Compile and release
25+
uses: rust-build/rust-build.action@v1.4.5
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
with:
29+
RUSTTARGET: ${{ matrix.target }}
30+
ARCHIVE_TYPES: ${{ matrix.archive }}

0 commit comments

Comments
 (0)