Skip to content

Commit d6784c9

Browse files
committed
feat: releases.yml
1 parent d37c35e commit d6784c9

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
include:
13+
- target: x86_64-pc-windows-gnu
14+
archive: zip
15+
- target: x86_64-unknown-linux-musl
16+
archive: tar.gz tar.xz tar.zst
17+
- target: x86_64-apple-darwin
18+
archive: zip
19+
steps:
20+
- uses: actions/checkout@master
21+
- name: Compile and release
22+
uses: rust-build/[email protected]
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
RUSTTARGET: ${{ matrix.target }}
27+
ARCHIVE_TYPES: ${{ matrix.archive }}
28+
TOOLCHAIN_VERSION: stable

0 commit comments

Comments
 (0)