@@ -133,6 +133,7 @@ jobs:
133133 - name : setup dev environment
134134 uses : ilammy/msvc-dev-cmd@v1
135135 if : startsWith(matrix.build, 'windows-clang')
136+ - run : cargo update
136137 - uses : Swatinem/rust-cache@v2
137138 - run : cargo test ${{ matrix.no_run }} --workspace --target ${{ matrix.target }}
138139 - run : cargo test ${{ matrix.no_run }} --workspace --target ${{ matrix.target }} --release
@@ -170,6 +171,7 @@ jobs:
170171 rustup component add rust-src --toolchain ${{ matrix.rust }}
171172 rustup default ${{ matrix.rust }}
172173 shell : bash
174+ - run : cargo update
173175 - uses : Swatinem/rust-cache@v2
174176 - run : cargo test -Z build-std=std ${{ matrix.no_run }} --workspace --target ${{ matrix.target }}
175177 - run : cargo test -Z build-std=std ${{ matrix.no_run }} --workspace --target ${{ matrix.target }} --release
@@ -187,6 +189,7 @@ jobs:
187189 run : |
188190 rustup target add ${{ matrix.target }}
189191 shell : bash
192+ - run : cargo update
190193 - uses : Swatinem/rust-cache@v2
191194 - run : cargo test --no-run --target ${{ matrix.target }}
192195 - run : cargo test --no-run --target ${{ matrix.target }} --release
@@ -227,6 +230,7 @@ jobs:
227230 echo "WASI_SDK_PATH=$WASI_SDK_PATH" >> "$GITHUB_ENV"
228231 echo "CC=$CC" >> "$GITHUB_ENV"
229232
233+ - run : cargo update
230234 - uses : Swatinem/rust-cache@v2
231235 with :
232236 env-vars : " WASI_TOOLCHAIN_VERSION"
@@ -248,6 +252,7 @@ jobs:
248252 sudo dpkg -i cuda-keyring_1.0-1_all.deb
249253 sudo apt-get update
250254 sudo apt-get -y install cuda-minimal-build-11-8
255+ - run : cargo update
251256 - uses : Swatinem/rust-cache@v2
252257 - name : Test 'cudart' feature
253258 shell : bash
0 commit comments