-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (33 loc) · 1.02 KB
/
rust-debug.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Rust - Debug Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Rust project
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
# `cargo check` command here will use installed `nightly`
# as it is set as an "override" for current directory
- name: Utilize Nightly 03-24-2021
run: |
rustup install nightly-2021-03-24
rustup target add wasm32-unknown-unknown --toolchain nightly-2021-03-24
- name: Run cargo check
run: WASM_BUILD_TOOLCHAIN=nightly-2021-03-24 cargo check --tests
- name: Build
run: WASM_BUILD_TOOLCHAIN=nightly-2021-03-24 cargo build --all
- name: Run tests
run: |
WASM_BUILD_TOOLCHAIN=nightly-2021-03-24 cargo test --all