ci.yml
This file
Path
.github/workflows/ci.yml
146 lines · 3.7 KiB · YAML
Last changed by
Raise minimum tested compiler to rust 1.88David Tolnaybefore adoptioncfcc279
History of this fileTake it
The walk stopped after 200 commits: lines older than 553ed38 point at it.
Update clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
lines 1–26why, one step back1name: CI23on:4 push:5 pull_request:6 workflow_dispatch:7 schedule: [cron: "40 1 * * *"]89permissions:10 contents: read1112env:13 RUSTFLAGS: -Dwarnings1415jobs:16 pre_ci:17 uses: dtolnay/.github/.github/workflows/pre_ci.yml@master1819 test:20 name: Rust ${{matrix.rust}}21 needs: pre_ci22 if: needs.pre_ci.outputs.continue23 runs-on: ubuntu-latest24 strategy:25 fail-fast: false26 matrix:Raise minimum tested compiler to rust 1.88David Tolnaybefore adoptioncfcc279
line 27why, one step back27 rust: [nightly, beta, stable, 1.88.0]Update clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
lines 28–29why, one step back28 timeout-minutes: 4529 steps:Update actions/checkout@v6 -> v7David Tolnaybefore adoptiond9dc3fa
line 30why, one step back30 - uses: actions/checkout@v7Update clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
lines 31–36why, one step back31 - uses: dtolnay/rust-toolchain@master32 with:33 toolchain: ${{matrix.rust}}34 components: rust-src35 - name: Enable type layout randomization36 run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENVRevert "Temporarily disable -Zrandomize-layout due to rustc ICE"David Tolnaybefore adoption7fc0c07
line 37why, one step back37 if: matrix.rust == 'nightly'Merge pull request #338 from dtolnay/nightlyciDavid Tolnaybefore adoption04774c0
lines 38–40why, one step back38 - name: Enable nightly-only tests39 run: echo RUSTFLAGS=${RUSTFLAGS}\ --cfg=anyhow_nightly_testing >> $GITHUB_ENV40 if: matrix.rust == 'nightly'Update clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
lines 41–42why, one step back41 - run: cargo test42 - run: cargo check --no-default-featuresMerge pull request #441 from dtolnay/backtraceDavid Tolnaybefore adoptionc8cb5ca
line 43why, one step back43 - run: cargo checkUpdate actions/upload-artifact@v6 -> v7David Tolnaybefore adoption917a169
line 44why, one step back44 - uses: actions/upload-artifact@v7Upload CI Cargo.lock for reproducing failuresDavid Tolnaybefore adoptionc378a2c
lines 45–48why, one step back45 if: matrix.rust == 'nightly' && always()46 with:47 name: Cargo.lock48 path: Cargo.lockPrevent upload-artifact from causing CI failureDavid Tolnaybefore adoption8852dc3
line 49why, one step back49 continue-on-error: trueUpdate clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
lines 50–58why, one step back5051 build:52 name: Rust ${{matrix.rust}}53 needs: pre_ci54 if: needs.pre_ci.outputs.continue55 runs-on: ubuntu-latest56 strategy:57 fail-fast: false58 matrix:Merge pull request #436 from dtolnay/upDavid Tolnaybefore adoption67df012
line 59why, one step back59 rust: [1.68.0]Update clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
lines 60–61why, one step back60 timeout-minutes: 4561 steps:Update actions/checkout@v6 -> v7David Tolnaybefore adoptiond9dc3fa
line 62why, one step back62 - uses: actions/checkout@v7Update clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
lines 63–66why, one step back63 - uses: dtolnay/rust-toolchain@master64 with:65 toolchain: ${{matrix.rust}}66 components: rust-srcMerge pull request #391 from dtolnay/thiserrorDavid Tolnaybefore adoptionf91c247
lines 67–68why, one step back67 - run: cargo check --manifest-path tests/crate/Cargo.toml68 - run: cargo check --manifest-path tests/crate/Cargo.toml --no-default-featuresUpdate clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
line 69why, one step back69Add CI job using minimal-versionsDavid Tolnaybefore adoption24d9166
lines 70–76why, one step back70 minimal:71 name: Minimal versions72 needs: pre_ci73 if: needs.pre_ci.outputs.continue74 runs-on: ubuntu-latest75 timeout-minutes: 4576 steps:Update actions/checkout@v6 -> v7David Tolnaybefore adoptiond9dc3fa
line 77why, one step back77 - uses: actions/checkout@v7Add CI job using minimal-versionsDavid Tolnaybefore adoption24d9166
lines 78–79why, one step back78 - uses: dtolnay/rust-toolchain@nightly79 - run: cargo generate-lockfile -Z minimal-versionsMerge pull request #441 from dtolnay/backtraceDavid Tolnaybefore adoptionc8cb5ca
line 80why, one step back80 - run: cargo check --lockedAdd CI job using minimal-versionsDavid Tolnaybefore adoption24d9166
line 81why, one step back81Update clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
lines 82–88why, one step back82 windows:83 name: Windows84 needs: pre_ci85 if: needs.pre_ci.outputs.continue86 runs-on: windows-latest87 timeout-minutes: 4588 steps:Update actions/checkout@v6 -> v7David Tolnaybefore adoptiond9dc3fa
line 89why, one step back89 - uses: actions/checkout@v7Update clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
lines 90–92why, one step back90 - uses: dtolnay/rust-toolchain@stable91 with:92 components: rust-srcMerge pull request #441 from dtolnay/backtraceDavid Tolnaybefore adoptionc8cb5ca
line 93why, one step back93 - run: cargo checkUpdate clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
line 94why, one step back94Test docs.rs documentation build in CIDavid Tolnaybefore adoption4fa56b6
lines 95–103why, one step back95 doc:96 name: Documentation97 needs: pre_ci98 if: needs.pre_ci.outputs.continue99 runs-on: ubuntu-latest100 timeout-minutes: 45101 env:102 RUSTDOCFLAGS: -Dwarnings103 steps:Update actions/checkout@v6 -> v7David Tolnaybefore adoptiond9dc3fa
line 104why, one step back104 - uses: actions/checkout@v7Test docs.rs documentation build in CIDavid Tolnaybefore adoption4fa56b6
lines 105–110why, one step back105 - uses: dtolnay/rust-toolchain@nightly106 with:107 components: rust-src108 - uses: dtolnay/install@cargo-docs-rs109 - run: cargo docs-rs110Update clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
lines 111–116why, one step back111 clippy:112 name: Clippy113 runs-on: ubuntu-latest114 if: github.event_name != 'pull_request'115 timeout-minutes: 45116 steps:Update actions/checkout@v6 -> v7David Tolnaybefore adoptiond9dc3fa
line 117why, one step back117 - uses: actions/checkout@v7Update clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
lines 118–129why, one step back118 - uses: dtolnay/rust-toolchain@nightly119 with:120 components: clippy, rust-src121 - run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic122123 miri:124 name: Miri125 needs: pre_ci126 if: needs.pre_ci.outputs.continue127 runs-on: ubuntu-latest128 timeout-minutes: 45129 steps:Update actions/checkout@v6 -> v7David Tolnaybefore adoptiond9dc3fa
line 130why, one step back130 - uses: actions/checkout@v7Unpin CI miri toolchainDavid Tolnaybefore adoptiond5bb36e
line 131why, one step back131 - uses: dtolnay/rust-toolchain@miriShow error details during miri setup in CIDavid Tolnaybefore adoption6046674
line 132why, one step back132 - run: cargo miri setupRevert "Temporarily disable miri on doctests"David Tolnaybefore adoptionbebc7a2
line 133why, one step back133 - run: cargo miri testUpdate clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
lines 134–142why, one step back134 env:135 MIRIFLAGS: -Zmiri-strict-provenance136137 outdated:138 name: Outdated139 runs-on: ubuntu-latest140 if: github.event_name != 'pull_request'141 timeout-minutes: 45142 steps:Update actions/checkout@v6 -> v7David Tolnaybefore adoptiond9dc3fa
line 143why, one step back143 - uses: actions/checkout@v7Explicitly install a Rust toolchain for cargo-outdated jobDavid Tolnaybefore adoption028cbee
line 144why, one step back144 - uses: dtolnay/rust-toolchain@stableUpdate clippy.toml msrv to match rust-version in Cargo.tomlDavid Tolnaybefore adoption553ed38
lines 145–146why, one step back145 - uses: dtolnay/install@cargo-outdated146 - run: cargo outdated --workspace --exit-code 1