-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (34 loc) · 1.11 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
name: Rust
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
rust: [stable, beta, nightly, 1.64.0, 1.57.0]
steps:
- uses: actions/checkout@v2
- name: ci-1.64
if: ${{ matrix.rust != '1.57.0' }}
run: |
rustup override set ${{ matrix.rust }}
cargo update
cd "${{github.workspace}}/"
cargo test --no-default-features --features "test rust_1_64"
cargo test --no-default-features --features "test rust_1_64 non_basic"
- name: ci-all-versions
run: |
rustup override set ${{ matrix.rust }}
cargo update
cd "${{github.workspace}}/const_panic_proc_macros/"
cargo test
cd "${{github.workspace}}/"
cargo build --no-default-features
cargo build
cargo test --features "test"
cargo test --no-default-features --features "test "
cargo test --no-default-features --features "test non_basic"
cargo test --no-default-features --features "test non_basic derive"