42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
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
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: ${{ runner.os }}-cargo
|
|
- name: Install musl-tools
|
|
run: sudo apt-get install musl-tools
|
|
- name: Build
|
|
run: cargo make build_standalone
|
|
- name: Rename
|
|
run: mv /home/runner/work/pslink/pslink/target/x86_64-unknown-linux-musl/release/pslink pslink_linux_64bit
|
|
- name: Upload the artifacts
|
|
uses: skx/github-action-publish-binaries@master
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
args: 'pslink_linux_64bit' |