chore(ci): add simple release CI
parent
74f91d4150
commit
43f762a952
|
@ -0,0 +1,28 @@
|
|||
name: Rust static release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
BUILD_TARGET: x86_64-unknown-linux-musl
|
||||
BINARY_NAME: Mutiny
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Build musl binary
|
||||
uses: gmiam/rust-musl-action@master
|
||||
with:
|
||||
args: cargo build --target $BUILD_TARGET --release
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ env.BINARY_NAME }}
|
||||
path: target/x86_64-unknown-linux-musl/release/${{ env.BINARY_NAME }}*
|
Loading…
Reference in New Issue