Skip to content

Commit

Permalink
chore(ci): debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
clechasseur committed Oct 4, 2024
1 parent 1891de3 commit 5f16d93
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' || '' }}
Expand Down

0 comments on commit 5f16d93

Please sign in to comment.