Run moonrepo/setup-rust@v1
with:
channel: 1.70.0
bins: cross
targets: aarch64-apple-ios
cache: true
cache-target: debug
inherit-toolchain: false
target-dirs: target
...
WARN The package cargo-cache v0.8.3 will be installed from source (with cargo)
WARN The package cross v0.2.5 will be installed from source (with cargo)
...
Compiling cfg-if v1.0.0
error: failed to compile `cargo-cache v0.8.3`, intermediate artifacts can be found at `/var/folders/w3/xh1ngrc13bg46kmhfdprbpyw0000gn/T/cargo-installgoVcWl`
Caused by:
package `cargo-platform v0.1.8` cannot be built because it requires rustc 1.73 or newer, while the currently active rustc version is 1.70.0
Try re-running cargo install with `--locked`
tl;dr I would like to build
bins
with option--locked
From this failed build I got error
From this
rust.yml
codeThe built-in advice from the error message above is pass CLI argument
--locked
.Can you allow passing
--locked
to thecargo install
command invoked by thewith
statement?