31 lines
861 B
YAML
31 lines
861 B
YAML
|
on:
|
||
|
release:
|
||
|
types: [created]
|
||
|
name: Handle Release
|
||
|
jobs:
|
||
|
generate:
|
||
|
name: Create release-artifacts
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions-rs/toolchain@v1
|
||
|
with:
|
||
|
toolchain: stable
|
||
|
target: x86_64-unknown-linux-musl
|
||
|
override: true
|
||
|
- uses: davidB/rust-cargo-make@v1
|
||
|
with:
|
||
|
version: 'latest'
|
||
|
- uses: jetli/wasm-pack-action@v0.3.0
|
||
|
with:
|
||
|
version: 'latest'
|
||
|
- uses: actions/checkout@v2
|
||
|
- name: Install musl-tools
|
||
|
run: sudo apt-get install musl-tools
|
||
|
- name: Build
|
||
|
run: cargo make build_standalone
|
||
|
- name: Upload the artifacts
|
||
|
uses: skx/github-action-publish-binaries@master
|
||
|
env:
|
||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||
|
with:
|
||
|
args: '/home/runner/work/pslink/pslink/target/x86_64-unknown-linux-musl/release/pslink'
|