Updating Rust
The below chore documents how you can update Rust in the macos image we use. It
is mostly specifically about Rust, but the below guide has also succesfully been
used to upgrade Flutter for example (since essentially all changes you would
want to do are contained in the flutter.sh and wallet.pkr.hcl file).
Docker image
Update Rust for docker images to the desired version in:
deploy/docker-images/ci/rust-user.shOptional: update Rust-related dependencies in
rust-user.sh,cyclonedx.shto the desired version (beware for yanked versions)
macOS image
Update Rust for macOS image to the desired version in:
deploy/macos-image/wallet.pkr.hclBump the version of the image
Optional: update Rust-related dependencies too
Build images
Create commit and MR and run the build images jobs:
build-images-tagandmacos-image-trigger
Use build images and update Rust workspace
Update all
Cargo.tomlfiles to the desired version (see commit1f0a26d1ac49947ed1da2abbc828d2f22ba7554f)Change the image tags in
.gitlab-ci.yml(BUILD_TAGand theimagetag in.env-macos-runner)Commit and push again
Get your MR approved and merged
And you’re done! 🎉