2020-10-27 23:20:38 +03:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-04-13 18:32:59 +03:00
|
|
|
name: Build & Test
|
2020-10-27 23:20:38 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-02-10 02:46:09 +03:00
|
|
|
- name: Add WASM target
|
|
|
|
run: rustup target add wasm32-wasi
|
2021-04-13 18:32:59 +03:00
|
|
|
- name: Install cargo-make
|
2021-04-13 18:52:27 +03:00
|
|
|
run: cargo install --debug cargo-make
|
2021-04-14 21:08:22 +03:00
|
|
|
- name: Build
|
|
|
|
run: cargo make build
|
|
|
|
- name: Test
|
|
|
|
run: cargo make test
|
2021-04-13 18:32:59 +03:00
|
|
|
|
|
|
|
format:
|
|
|
|
name: Check Formatting
|
2020-11-14 20:59:37 +03:00
|
|
|
runs-on: ubuntu-latest
|
2020-11-28 22:02:05 +03:00
|
|
|
|
2020-11-14 20:59:37 +03:00
|
|
|
steps:
|
2021-04-13 18:49:17 +03:00
|
|
|
- uses: actions/checkout@v2
|
2021-04-13 18:32:59 +03:00
|
|
|
- name: Install cargo-make
|
2021-04-13 18:52:27 +03:00
|
|
|
run: cargo install --debug cargo-make
|
2021-04-13 18:32:59 +03:00
|
|
|
- name: Check Format
|
2021-04-13 18:49:17 +03:00
|
|
|
run: cargo make check-format
|
2021-04-13 18:32:59 +03:00
|
|
|
|
2020-11-28 22:02:05 +03:00
|
|
|
clippy:
|
2021-04-13 18:52:27 +03:00
|
|
|
name: Check Clippy Lints
|
2020-11-28 22:02:05 +03:00
|
|
|
runs-on: ubuntu-latest
|
2020-11-14 20:59:37 +03:00
|
|
|
|
2020-11-28 22:02:05 +03:00
|
|
|
steps:
|
2021-04-13 18:49:17 +03:00
|
|
|
- uses: actions/checkout@v2
|
2021-04-13 18:32:59 +03:00
|
|
|
- name: Install cargo-make
|
2021-04-13 18:52:27 +03:00
|
|
|
run: cargo install --debug cargo-make
|
|
|
|
- name: Check Lints
|
2021-04-13 18:49:17 +03:00
|
|
|
run: cargo make clippy -D clippy::all
|