Update actions/checkout from v2 to v4: fixes warnings about Node JS version
Replace actions-rs/toolchain with dtolnay/rust-toolchain: actions-rs/toolchain has been unmaintained for some time and is now archived. Note: override is no now unnecessary, the specified toolchain will be set as rustup default
Replace actions/cache with Swatinem/rust-cache: Easier, does what you'd expect out of the box. Note: This is technically a change in behavior. build and build-demo get separate caches now, but this shouldn't be a problem right?
Also refactor a bit:
Set CARGO_*/RUSTFLAGS environment variables for entire workflow
Reorder some properties for readability (name -> if -> run)
Fix a typo/wrong name for a job step (Build without default features)
Functionality should be the same as before.
Update or replace the following dependencies:
override
is no now unnecessary, the specified toolchain will be set asrustup default
build
andbuild-demo
get separate caches now, but this shouldn't be a problem right?Also refactor a bit:
CARGO_*
/RUSTFLAGS
environment variables for entire workflow