-
Notifications
You must be signed in to change notification settings - Fork 49
49 lines (45 loc) · 1.35 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
name: Rust
on:
pull_request:
push:
branches: [main]
jobs:
build_test:
strategy:
matrix:
os: [ubuntu-latest]
rust:
- 1.47.0
- stable
- beta
- nightly
include:
- rust: nightly
os: windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
# On MSRV some dev-dependencies don't build so we can't run tests.
- name: Check MSRV
if: matrix.rust == '1.47.0'
run: |
cargo check --features=alloc,std,grab_spare_slice
- name: Test non nightly
if: matrix.rust != '1.47.0' && matrix.rust != 'nightly'
run: |
cargo test --features=alloc,std,grab_spare_slice
- name: Test on Nightly with All Features
if: matrix.rust == 'nightly'
run: |
cargo test --all-features
# The #[debugger_visualizer] attribute is currently gated behind an unstable feature flag.
# In order to test the visualizers for the tinyvec crate, they have to be tested on a nightly build.
- name: Test debugger_visualizer feature on Nightly
if: |
matrix.os == 'windows-latest' &&
matrix.rust == 'nightly'
run: |
cargo test --all-features --test debugger_visualizer -- --test-threads=1