File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 RUSTFLAGS : " --deny warnings"
1313
1414jobs :
15- build :
15+ test :
1616 runs-on : ${{ matrix.os }}-latest
1717 strategy :
1818 fail-fast : false
1919 matrix :
20- toolchain : ["beta "]
20+ toolchain : ["stable", "nightly "]
2121 include :
2222 - target : x86_64-unknown-linux-gnu
2323 os : ubuntu
@@ -27,17 +27,31 @@ jobs:
2727 os : windows
2828 - target : aarch64-apple-darwin
2929 os : macos
30+
3031 steps :
31- - uses : actions/checkout@v4
32+ - uses : actions/checkout@v4
3233
33- - name : Install latest ${{ matrix.toolchain }}
34- uses : dtolnay/rust-toolchain@stable
35- with :
36- target : ${{ matrix.target }}
34+ - name : Install Rust
35+ uses : dtolnay/rust-toolchain@stable
36+ with :
3737 toolchain : ${{ matrix.toolchain }}
38-
39- - name : Build
40- run : cargo build --target ${{ matrix.target }}
38+ target : ${{ matrix.target }}
39+
40+ - name : Build
41+ run : |
42+ if [ "${{ matrix.toolchain }}" = "stable" ]; then
43+ cargo build --target ${{ matrix.target }} --no-default-features
44+ else
45+ cargo build --target ${{ matrix.target }} --all-features
46+ fi
47+
48+ - name : Test
49+ run : |
50+ if [ "${{ matrix.toolchain }}" = "stable" ]; then
51+ cargo test --target ${{ matrix.target }} --no-default-features
52+ else
53+ cargo test --target ${{ matrix.target }} --all-features
54+ fi
4155
4256 documentation :
4357 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments