Skip to content

Commit 17ceb59

Browse files
volodstaimiclaude
andcommitted
Commit Cargo.lock and require it in CI
The lockfile comes from the first CI run, resolved for rust-version 1.85. Drop the bootstrap steps and --allow-dirty so every job uses --locked against the committed file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 0abd334 commit 17ceb59

2 files changed

Lines changed: 1528 additions & 10 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ jobs:
3737
with:
3838
toolchain: ${{ env.STABLE }}
3939
components: clippy
40-
# Bootstrap only: removed once Cargo.lock is committed.
41-
- run: test -f Cargo.lock || cargo generate-lockfile
4240
- run: cargo clippy --locked --all-targets -- -D warnings
4341
test:
4442
runs-on: ubuntu-latest
@@ -53,16 +51,9 @@ jobs:
5351
- uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master
5452
with:
5553
toolchain: ${{ matrix.rust == 'msrv' && env.MSRV || env.STABLE }}
56-
# Bootstrap only: removed once Cargo.lock is committed.
57-
- run: test -f Cargo.lock || cargo generate-lockfile
58-
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
59-
if: matrix.rust == 'stable'
60-
with:
61-
name: cargo-lock
62-
path: Cargo.lock
6354
- run: cargo test --locked
6455
- run: python3 .ci/check.py
65-
- run: cargo publish --dry-run --locked --allow-dirty
56+
- run: cargo publish --dry-run --locked
6657
if: matrix.rust == 'stable'
6758
publish:
6859
if: github.event_name == 'workflow_dispatch' && inputs.publish && github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)