esp-rs / esp-template

A minimal esp-hal application template for use with cargo-generate
Apache License 2.0
136 stars 27 forks source link

CI caching does not work #144

Closed armandas closed 6 months ago

armandas commented 6 months ago

I noticed that the caching for Rust did not work. After some investigation, I saw the following errors in Enable Caching step:

Error: Command failed: rustc -vV
Error: error: in /home/runner/work/armo-firmware-rs/armo-firmware-rs/rust-toolchain.toml: invalid toolchain name: 'esp'

Looking at the rust-cache README, I found the following note:

selecting a toolchain either by action or manual rustup calls should happen before the plugin, as the cache uses the current rustc version as its cache key

Currently, CI workflow enables the cache before setting up Rust, but the two steps should be reversed.