moonrepo / setup-rust

A maintained GitHub action for setting up Rust and Cargo.
84 stars 6 forks source link

aarch64-apple-darwin on github mac-os runner casing issues #13

Closed C0D3-M4513R closed 9 months ago

C0D3-M4513R commented 9 months ago

logs_macos_aarch64.txt (for when logs get deleted) from https://github.com/C0D3-M4513R/DexProtectOscRS/actions/runs/6285427718/job/17067798487?pr=3#logs

image

milesj commented 9 months ago

@C0D3-M4513R

Not sure what the fix is here? Looks like you're trying to install arm64 on an x64 machine. That won't work.

C0D3-M4513R commented 9 months ago

With older (node12 actions) it compiled fine. see: https://github.com/C0D3-M4513R/DexProtectOscRS/actions/runs/6285000766/job/17066927016 logs_58.zip the fix here s probably to allow using rustup target add --toolchain stable aarch64-apple-darwin instead of installing it as a new default toolchain.

Then one can use cargo build --target aarch64-apple-darwin --release without issue

C0D3-M4513R commented 9 months ago

Okay, seems like I should have been using the target instead of the channel config (because that is exactly what I needed). Sorry for the "useless" issue.