Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 63860e9

Browse files
committed
release ci
1 parent 4dc88f1 commit 63860e9

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
name: Build Static Linux Binaries
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: build dependencies
14+
run: |
15+
sudo apt-get install musl-tools
16+
- uses: actions/checkout@v2
17+
- uses: actions-rs/toolchain@v1
18+
with:
19+
toolchain: stable
20+
target: x86_64-unknown-linux-musl
21+
- uses: Swatinem/rust-cache@v1
22+
- uses: actions-rs/cargo@v1
23+
with:
24+
command: build
25+
args: --release --target x86_64-unknown-linux-musl
26+
- uses: svenstaro/upload-release-action@v2
27+
with:
28+
repo_token: ${{ secrets.GITHUB_TOKEN }}
29+
file: target/x86_64-unknown-linux-musl/release/parse_demo
30+
asset_name: parse_demo
31+
tag: ${{ github.ref }}
32+

0 commit comments

Comments
 (0)