11name : CI
22
3-
43on :
54 push :
65 branches : [main, development]
76 pull_request :
87 branches : [development]
98
10-
119jobs :
1210 tests :
1311 runs-on : " ${{ matrix.platform.os }}-latest"
@@ -32,34 +30,22 @@ jobs:
3230 path : |
3331 ~/.cargo
3432 ./target
35- key : ${{ runner.os }}-cargo-${{ matrix.platform.target }}-${{ hashFiles('Cargo.toml') }}
33+ key : ${{ runner.os }}-cargo-${{ matrix.platform.target }}-${{ hashFiles('**/ Cargo.toml') }}
3634 restore-keys : ${{ runner.os }}-cargo-${{ matrix.platform.target }}
3735 - name : Install Rust toolchain
38- uses : actions-rs/ toolchain@v1
36+ uses : dtolnay/rust- toolchain@stable
3937 with :
40- toolchain : stable
41- target : ${{ matrix.platform.target }}
42- profile : minimal
43- default : true
38+ targets : ${{ matrix.platform.target }}
4439 - name : Install test runner for wasm
4540 if : matrix.platform.target == 'wasm32-unknown-unknown'
4641 run : curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
4742 - name : Stable Build with all features
48- uses : actions-rs/cargo@v1
49- with :
50- command : build
51- args : --all-features --target ${{ matrix.platform.target }}
43+ run : cargo build --all-features --target ${{ matrix.platform.target }}
5244 - name : Stable Build without features
53- uses : actions-rs/cargo@v1
54- with :
55- command : build
56- args : --target ${{ matrix.platform.target }}
45+ run : cargo build --target ${{ matrix.platform.target }}
5746 - name : Tests
5847 if : matrix.platform.target == 'x86_64-unknown-linux-gnu' || matrix.platform.target == 'x86_64-pc-windows-msvc' || matrix.platform.target == 'aarch64-apple-darwin'
59- uses : actions-rs/cargo@v1
60- with :
61- command : test
62- args : --all-features
48+ run : cargo test --all-features
6349 - name : Tests in WASM
6450 if : matrix.platform.target == 'wasm32-unknown-unknown'
6551 run : wasm-pack test --node -- --all-features
8369 key : ${{ runner.os }}-cargo-features-${{ hashFiles('Cargo.toml') }}
8470 restore-keys : ${{ runner.os }}-cargo-features
8571 - name : Install Rust toolchain
86- uses : actions-rs/toolchain@v1
87- with :
88- toolchain : stable
89- target : ${{ matrix.platform.target }}
90- profile : minimal
91- default : true
72+ uses : dtolnay/rust-toolchain@stable
9273 - name : Stable Build
93- uses : actions-rs/cargo@v1
94- with :
95- command : build
96- args : --no-default-features ${{ matrix.features }}
74+ run : cargo build --no-default-features ${{ matrix.features }}
0 commit comments