Skip to content

Commit 632d94d

Browse files
authored
Create release.yml
1 parent 4802552 commit 632d94d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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@v4
21+
with:
22+
submodules: true
23+
- name: Install Protoc
24+
uses: arduino/setup-protoc@v3
25+
# Update references
26+
- name: Git Submodule Update
27+
run: |
28+
git pull --recurse-submodules
29+
git submodule update --remote --recursive
30+
- name: Compile and release
31+
uses: rust-build/rust-build.action@v1.4.5
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
with:
35+
RUSTTARGET: ${{ matrix.target }}
36+
ARCHIVE_TYPES: ${{ matrix.archive }}

0 commit comments

Comments
 (0)