|
63 | 63 | run: cargo doc --no-deps -p boring -p boring-sys -p hyper-boring -p tokio-boring --features rpk,underscore-wildcards |
64 | 64 | env: |
65 | 65 | CARGO_BUILD_RUSTDOCFLAGS: "--cfg=docsrs" |
66 | | - RUST_BOOTSTRAP: 1 |
| 66 | + RUSTC_BOOTSTRAP: 1 |
67 | 67 | DOCS_RS: 1 |
68 | 68 | - name: Cargo.toml boring versions consistency |
69 | 69 | shell: bash |
@@ -195,32 +195,37 @@ jobs: |
195 | 195 | C_INCLUDE_PATH: "C:\\msys64\\usr\\include" |
196 | 196 | CPLUS_INCLUDE_PATH: "C:\\msys64\\usr\\include" |
197 | 197 | LIBRARY_PATH: "C:\\msys64\\usr\\lib" |
| 198 | + RUSTC_BOOTSTRAP: 1 # for -Z checksum-freshness |
198 | 199 | # CI's Windows doesn't have required root certs |
199 | | - extra_test_args: --workspace --exclude tokio-boring --exclude hyper-boring |
| 200 | + extra_test_args: --workspace --exclude tokio-boring --exclude hyper-boring -Z checksum-freshness |
200 | 201 | - thing: i686-mingw |
201 | 202 | target: i686-pc-windows-gnu |
202 | 203 | rust: stable |
203 | 204 | os: windows-latest |
204 | 205 | check_only: true |
205 | 206 | custom_env: |
| 207 | + RUSTC_BOOTSTRAP: 1 # for -Z checksum-freshness |
206 | 208 | CMAKE_GENERATOR: "MinGW Makefiles" |
207 | 209 | COLLECT_GCC: null |
208 | 210 | # CI's Windows doesn't have required root certs |
209 | | - extra_test_args: --workspace --exclude tokio-boring --exclude hyper-boring |
| 211 | + extra_test_args: --workspace --exclude tokio-boring --exclude hyper-boring -Z checksum-freshness |
210 | 212 | - thing: i686-msvc |
211 | 213 | target: i686-pc-windows-msvc |
212 | 214 | rust: stable-x86_64-msvc |
213 | 215 | os: windows-latest |
214 | 216 | custom_env: |
| 217 | + RUSTC_BOOTSTRAP: 1 # for -Z checksum-freshness |
215 | 218 | CXXFLAGS: -msse2 |
216 | 219 | # CI's Windows doesn't have required root certs |
217 | | - extra_test_args: --workspace --exclude tokio-boring --exclude hyper-boring |
| 220 | + extra_test_args: --workspace --exclude tokio-boring --exclude hyper-boring -Z checksum-freshness |
218 | 221 | - thing: x86_64-msvc |
219 | 222 | target: x86_64-pc-windows-msvc |
220 | 223 | rust: stable-x86_64-msvc |
221 | 224 | os: windows-latest |
| 225 | + custom_env: |
| 226 | + RUSTC_BOOTSTRAP: 1 # for -Z checksum-freshness |
222 | 227 | # CI's Windows doesn't have required root certs |
223 | | - extra_test_args: --workspace --exclude tokio-boring --exclude hyper-boring |
| 228 | + extra_test_args: --workspace --exclude tokio-boring --exclude hyper-boring -Z checksum-freshness |
224 | 229 | env: |
225 | 230 | CARGO_HOME: ${{ github.workspace }}/.cache/cargo |
226 | 231 | CARGO_BUILD_BUILD_DIR: ${{ github.workspace }}/.cache/build-dir |
@@ -301,15 +306,23 @@ jobs: |
301 | 306 | # Windows builds are the slowest |
302 | 307 | - name: Cache deps in Windows tests |
303 | 308 | if: startsWith(matrix.os, 'windows') |
304 | | - uses: actions/cache@v4 |
| 309 | + uses: actions/cache/restore@v4 |
| 310 | + id: test-cache-restore |
305 | 311 | with: |
306 | | - path: .cache/build-dir # CARGO_BUILD_BUILD_DIR |
307 | | - key: test-${{ matrix.target }}-${{ hashFiles('Cargo.lock') }} |
| 312 | + path: .cache/build-dir |
| 313 | + key: wintest-${{ matrix.target }}-${{ hashFiles('Cargo.lock') }} |
308 | 314 | - name: Build tests |
309 | 315 | # We `build` because we want the linker to verify we are cross-compiling correctly for check-only targets. |
310 | | - run: cargo build -v --target ${{ matrix.target }} --tests ${{ matrix.extra_test_args }} |
| 316 | + run: cargo build -vv --target ${{ matrix.target }} --tests ${{ matrix.extra_test_args }} |
311 | 317 | shell: bash |
312 | 318 | env: ${{ matrix.custom_env }} |
| 319 | + # By default it'd be saved after later cargo calls, which already invalidated the cache |
| 320 | + - name: Cache deps in Windows tests |
| 321 | + if: startsWith(matrix.os, 'windows') |
| 322 | + uses: actions/cache/save@v4 |
| 323 | + with: |
| 324 | + path: .cache/build-dir |
| 325 | + key: ${{ steps.test-cache-restore.outputs.cache-primary-key }} |
313 | 326 | - name: Run tests (skip=${{ matrix.check_only }}) |
314 | 327 | if: "!matrix.check_only" |
315 | 328 | run: cargo test --target ${{ matrix.target }} ${{ matrix.extra_test_args }} |
|
0 commit comments