diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3e3b65..3bdee42 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,19 +79,43 @@ jobs: - name: Rust Cache uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3 with: - prefix-key: v7-rust + prefix-key: v11-rust key: all-features-${{ matrix.all-features }}-msrv-pins-files-${{ hashFiles('**/msrv-pins.toml') }} cache-on-failure: true - name: Install required tools uses: taiki-e/install-action@005f9c234df66b748f0b5f22b26ef83172082762 # v2.44.20 with: - tool: just,cargo-hack,cargo-minimal-versions,cargo-msrv,cargo-msrv-prep + tool: just,cargo-hack,cargo-minimal-versions,cargo-msrv-prep env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Archive Cargo.lock to debug something + if: always() + uses: actions/upload-artifact@v4 + with: + name: 'cargo-lock-before-toolchain-${{ matrix.toolchain }}-os-${{ matrix.os }}-all-features-${{ matrix.all-features }}' + path: 'Cargo.lock' + + - name: Prep Cargo.toml + run: just all_features=${{ matrix.all-features }} prep + + - name: Archive Cargo.lock to debug something (after prep) + if: always() + uses: actions/upload-artifact@v4 + with: + name: 'cargo-lock-after-prep-toolchain-${{ matrix.toolchain }}-os-${{ matrix.os }}-all-features-${{ matrix.all-features }}' + path: 'Cargo.lock' + - name: Run checks using cargo-minimal-versions - run: just all_features=${{ matrix.all-features }} check-minimal + run: just all_features=${{ matrix.all-features }} _check-minimal-only + + - name: Archive Cargo.lock to debug something (after prep) + if: always() + uses: actions/upload-artifact@v4 + with: + name: 'cargo-lock-after-toolchain-${{ matrix.toolchain }}-os-${{ matrix.os }}-all-features-${{ matrix.all-features }}' + path: 'Cargo.lock' build: name: Build for Rust ${{ matrix.toolchain }}${{ matrix.experimental && ' (experimental)' || '' }} on ${{ matrix.os }}${{ matrix.ignore-lock && ' without Cargo.lock' || '' }}${{ matrix.all-features && ' with all features' || '' }}