Pslink/.github/workflows/rust.yml

42 lines
902 B
YAML
Raw Normal View History

2021-04-18 16:18:23 +02:00
name: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
2021-08-12 11:26:22 +02:00
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
2021-08-12 11:54:40 +02:00
target: x86_64-unknown-linux-musl
2021-08-12 11:26:22 +02:00
override: true
- uses: davidB/rust-cargo-make@v1
with:
2021-08-12 11:57:05 +02:00
version: 'latest'
2021-08-12 14:08:50 +02:00
- uses: jetli/wasm-pack-action@v0.3.0
with:
version: 'latest'
2021-04-18 16:18:23 +02:00
- uses: actions/checkout@v2
2021-08-14 10:24:07 +02:00
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install musl-tools
2021-08-12 14:13:21 +02:00
run: sudo apt-get install musl-tools
2021-04-18 16:18:23 +02:00
- name: Build
2021-08-12 11:26:22 +02:00
run: cargo make build_standalone