Skip to content

Commit c2b0787

Browse files
committed
CI
1 parent 61fc476 commit c2b0787

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,21 @@ on:
55

66
jobs:
77
check:
8-
name: Tests
8+
name: Tests (${{ matrix.rust }})
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
1212
rust:
1313
- stable
1414
- beta
1515
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions-rs/toolchain@v1
16+
- uses: actions/checkout@v4
17+
- uses: dtolnay/rust-toolchain@master
1818
with:
19-
profile: minimal
2019
toolchain: ${{ matrix.rust }}
21-
override: true
22-
- uses: actions-rs/cargo@v1
23-
with:
24-
command: test
25-
args: --all --all-features
26-
- uses: actions-rs/cargo@v1
27-
with:
28-
command: test
29-
# Test no_std support
30-
args: -p rmp --no-default-features
20+
21+
- name: Test (all, all features)
22+
run: cargo test --all --all-features
23+
24+
- name: Test no_std (no default features)
25+
run: cargo test -p rmp --no-default-features

rmp/tests/func/est.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "std")]
2+
13
use rmp::decode::{LenError, MessageLen};
24
use rmp::encode::*;
35
use rmp::Marker;

0 commit comments

Comments
 (0)