forked from demostf/parser
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 811 Bytes
/
release.yml
File metadata and controls
32 lines (28 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Release
on:
release:
types: [created]
jobs:
build:
name: Build Static Linux Binaries
runs-on: ubuntu-latest
steps:
- name: build dependencies
run: |
sudo apt-get install musl-tools
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-musl
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --target x86_64-unknown-linux-musl
- uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/x86_64-unknown-linux-musl/release/parse_demo
asset_name: parse_demo
tag: ${{ github.ref }}