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: test minimal version of dependencies #493

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

caspermeijn
Copy link
Contributor

Use cargo minimal-versions to check whether the minimal specified versions dependencies successfully compiles.

As this repo has no Cargo.lock, CI will always test with the newest compatible dependency versions. This new job will check oldest compatible dependency version as well.

This requires unstable nightly feature minimal-versions, but they abstracted away by cargo-minimal-versions project.

prost uses the same job for several months: https://github.com/tokio-rs/prost/blob/21208abf667313866f79d3d1438310c4dc20bdff/.github/workflows/ci.yml#L168-L176

Use `cargo minimal-versions` to check whether the minimal specified versions dependencies successfully compiles.

As this repo has no `Cargo.lock`, CI will always test with the newest compatible dependency versions. This new job will check oldest compatible dependency version as well.

This requires unstable nightly feature `minimal-versions`, but they abstracted away by `cargo-minimal-versions` project.
@tomhoule
Copy link
Member

Are you able to see the CI output to iterate on this?

@caspermeijn
Copy link
Contributor Author

Are you able to see the CI output to iterate on this?

So I have been a bit dumb and just committed this CI job without testing. I will look into what dependencies need to change to make this work and add them as separate commits in this PR.

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