-
-
Notifications
You must be signed in to change notification settings - Fork 272
44 lines (40 loc) · 1.11 KB
/
rust.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
41
42
43
44
name: Rust
on:
push:
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
channel: [stable, beta, nightly]
os: [ubuntu, macos, windows]
steps:
- uses: easimon/maximize-build-disk-space@v10
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-android: true
remove-haskell: true
remove-codeql: true
- uses: actions/checkout@v2
- run: sudo apt install llvm
if: matrix.os == 'ubuntu'
- run: rustup default ${{ matrix.channel }}
- run: cargo build --verbose --all-targets
- run: cargo test
- run: cargo build --verbose --all-targets -F stream
- run: cargo test -F stream
wasm-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: rustup default stable
- run: rustup target add wasm32-unknown-unknown
- run: cargo build --verbose --target=wasm32-unknown-unknown --no-default-features
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: cargo fmt --all -- --check
- run: cargo clippy --tests --examples