File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed
Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change 77 paths :
88 - ' src/**'
99 - ' Cargo.toml'
10+ - ' .github/workflows/rust.yml'
1011 pull_request :
1112 branches :
1213 - master
1314 paths :
1415 - ' src/**'
1516 - ' Cargo.toml'
17+ - ' .github/workflows/rust.yml'
1618
1719env :
1820 CARGO_TERM_COLOR : always
1921
2022jobs :
21- build :
22-
23+ build_and_test :
2324 runs-on : ubuntu-latest
25+ strategy :
26+ fail-fast : false
27+ matrix :
28+ rust : [stable, 1.86.0, nightly, 1.77.2]
2429
2530 steps :
26- - uses : actions/checkout@v3
31+ - name : Checkout code
32+ uses : actions/checkout@v4
33+
34+ - name : Install Rust toolchain (${{ matrix.rust }})
35+ uses : actions-rs/toolchain@v1
36+ with :
37+ profile : minimal
38+ toolchain : ${{ matrix.rust }}
39+ override : true
40+
2741 - name : Build
28- run : cargo build --verbose --release
42+ run : cargo +${{ matrix.rust }} build --verbose --release
43+
2944 - name : Run tests
30- run : cargo test --verbose
45+ run : cargo +${{ matrix.rust }} test --verbose
You can’t perform that action at this time.
0 commit comments