-
Notifications
You must be signed in to change notification settings - Fork 19
43 lines (33 loc) · 1.01 KB
/
test.yaml
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
name: Rust CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-std:
name: Test with default features on stable Rust
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install stable Rust toolchain
run: |
rustup toolchain install stable
rustup default stable
- name: Build (stable)
run: cargo +stable build --verbose
- name: Run tests (stable)
run: cargo +stable test --verbose
test-no-std:
name: Test without default features on nightly Rust
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nightly Rust toolchain
run: |
rustup toolchain install nightly
rustup default nightly
- name: Build (nightly, no default features)
run: cargo +nightly build --verbose --no-default-features
- name: Run tests (nightly, no default features)
run: cargo +nightly test --verbose --no-default-features