TheBevyFlock / bevy_quickstart

This template is a great way to get started on a new Bevy game—especially for a game jam!
https://the-bevy-flock.itch.io/bevy-quickstart
MIT License
151 stars 25 forks source link

Release workflow should use --locked #291

Closed tbillington closed 1 week ago

tbillington commented 2 weeks ago

Release builds should use cargo build --locked for consistent releases and optimal build cache utilisation.

Asserts that the exact same dependencies and versions are used as when the existing Cargo.lock file was originally generated. Cargo will exit with an error when either of the following scenarios arises:

The lock file is missing.
Cargo attempted to change the lock file due to a different dependency resolution.

It may be used in environments where deterministic builds are desired, such as in CI pipelines.

benfrankel commented 2 weeks ago

We should be able to use this in the CI workflow as well, including for clippy.