Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: only build without lockfile if dependencies changed #2643

Merged
merged 8 commits into from
Feb 19, 2025

Conversation

sveitser
Copy link
Collaborator

@sveitser sveitser commented Feb 19, 2025

  • Do not run this check on PRs unless dependencies are modified.
  • Comment on the PR in case of failure to communicate that PR can still be merged. There is such an example comment below.
  • Add badge to readme to make failures on main or scheduled builds visible.

- Makes this job less noisy if dependencies weren't modified.
- Comment on the PR in case of failure to communicate that PR can still
  be merged.
- Add badge to readme to make failures on main or scheduled builds
  visible.
Copy link
Contributor

Unable to build without Cargo.lock file.

This means that after this change 3rd party projects may have
difficulties using crates in this repo as a dependency. If this
isn't easy to fix please open an issue so we can fix it later.

For the failing build see: https://github.com/EspressoSystems/espresso-sequencer/actions/runs/13412323018

To reproduce locally run

cargo generate-lockfile
cargo check --all-targets

This PR can still be merged.

@sveitser sveitser marked this pull request as ready for review February 19, 2025 12:50
@sveitser sveitser requested review from ss-es and pls148 February 19, 2025 12:51
@EspressoSystems EspressoSystems deleted a comment from github-actions bot Feb 19, 2025
@sveitser sveitser changed the title CI: build without lockfile if dependencies changed CI: only build without lockfile if dependencies changed Feb 19, 2025
@sveitser sveitser merged commit 26ef084 into main Feb 19, 2025
52 checks passed
@sveitser sveitser deleted the ma/ci-without-lockfile-file-gating branch February 19, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants