File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,29 +18,30 @@ jobs:
1818 rust : [stable, nightly]
1919 cargo_features : ['', 'alloc', 'default']
2020
21+ env :
22+ CARGO_TERM_COLOR : always
23+
2124 steps :
22- - uses : hecrj/setup- rust-action@v2
25+ - uses : dtolnay/ rust-toolchain@master
2326 with :
24- rust-version : ${{ matrix.rust }}
25- targets : ${{ matrix.target }}
27+ toolchain : ${{ matrix.rust }}
2628 components : ' rustfmt, clippy'
2729
30+ - uses : Swatinem/rust-cache@v2
31+ with :
32+ env-vars : ROARING
33+ # Allow us to cache croaring-sys when it doesn't change
34+ cache-workspace-crates : true
35+
2836 - name : Install cargo tools
2937 uses : taiki-e/install-action@v2
3038 with :
3139 tool : cargo-hack,cargo-minimal-versions${{ matrix.os == 'ubuntu-latest' && ',cargo-fuzz' || '' }}
3240 if : matrix.rust == 'nightly' && matrix.cargo_features == 'default'
3341
3442 - uses : actions/checkout@v6
35-
36- - name : Install LLVM
37- if : matrix.os == 'windows-latest'
38- run : choco upgrade llvm -y
39-
40- - name : Set clang path
41- if : matrix.os =='windows-latest'
42- run : echo "LIBCLANG_PATH=C:\Program Files\LLVM\bin" >> $GITHUB_ENV
43- shell : bash
43+ with :
44+ persist-credentials : false
4445
4546 - name : Cargo fmt
4647 run : cargo +${{ matrix.rust }} fmt --all -- --check
You can’t perform that action at this time.
0 commit comments