-
Notifications
You must be signed in to change notification settings - Fork 108
65 lines (51 loc) · 1.76 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Rust
on:
push:
pull_request:
schedule:
- cron: 5 16 * * 3
jobs:
build:
strategy:
fail-fast: false
matrix:
toolchain: ["stable", "beta", "nightly"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install toolchains
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- name: Build
run: cargo +${{ matrix.toolchain }} build --workspace --verbose
- name: Run tests
run: cargo +${{ matrix.toolchain }} test --workspace --all-features --verbose -- --skip _runsinglethread
- name: Run tests (single-threaded tests)
run: cargo +${{ matrix.toolchain }} test --workspace --all-features --verbose -- _runsinglethread --test-threads 1
- name: Build docs (all features)
run: cargo +${{ matrix.toolchain }} doc --workspace --all-features
- name: Build docs
run: cargo +${{ matrix.toolchain }} doc --workspace
check:
strategy:
fail-fast: false
matrix:
toolchain: ["stable", "beta", "nightly"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install toolchains (aarch64)
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: aarch64-linux-android
- name: Install toolchains (i686)
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: i686-unknown-linux-gnu
- name: cargo check (aarch64)
run: cargo +${{ matrix.toolchain }} check --workspace --target aarch64-linux-android --all-features
- name: cargo check (i686)
run: cargo +${{ matrix.toolchain }} check --workspace --target i686-unknown-linux-gnu --all-features