-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (52 loc) · 1.71 KB
/
Copy pathmain.yml
File metadata and controls
57 lines (52 loc) · 1.71 KB
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
name: main
on:
push:
branches: [main]
jobs:
docs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# windows and macos are disabled, because we don't do anything target specific
# os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest]
rust: [nightly]
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@master
- name: Run doc tests
run: cargo +nightly test --verbose --all-features --doc
nightly_test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# windows and macos are disabled, because we don't do anything target specific
# os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest]
rust: [nightly]
features_std: ["", "alloc", "std"]
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@master
- name: Run tests
run: cargo +nightly test --lib --tests --verbose --no-default-features --features "${{ matrix.features_std }}" --features nightly
stable_test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# windows and macos are disabled, because we don't do anything target specific
# os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest]
rust: [stable]
features_std: ["", "alloc", "std"]
steps:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@master
- name: Run tests
run: cargo +stable test --lib --tests --verbose --no-default-features --features "${{ matrix.features_std }}"