42 lines
870 B
YAML
42 lines
870 B
YAML
name: Rust
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
build:
|
|
|
|
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 }}-cargols
|
|
- name: Install musl-tools
|
|
run: sudo apt-get install musl-tools
|
|
- name: Build
|
|
run: cargo make build_standalone |