rusty_v8
rusty_v8 copied to clipboard
ci: x86_64 build failed on macos-latest image
> LGTM, waiting on a build pass.
@Chiichen It appears that 4e30365 seems to have caused the apple builds to fail.
Thanks for your reply. It reports in workflow's log at line 135
135 error[E0463]: can't find crate for `core`
This looks like a classic error that can occur when we cross-compile without the corresponding tool chain installed. and I found it at line 7
6 Runner Image
7 Image: macos-14-arm64
8 Version: 20240415.6
9 Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20240415.6/images/macos/macos-14-arm64-Readme.md
10 Image Release: https://github.com/actions/runner-images/releases/tag/macos-14-arm64%2F20240415.6
It seems that we are trying to build a x86_64 target on aarch64 platform. I think this may be caused by us not properly installing the Rust toolchain for x86_64-macos on the aarch64-macos device
Actually, I found that the existing workflow does not handle cross-compilation on macos devices. One method is to force it to use x86_64 machines by specifying an older macos version(macos11 or macos12), and the other method is to amend the workflow to support cross-compilation on the macos platform.
Originally posted by @Chiichen in https://github.com/denoland/rusty_v8/issues/1458#issuecomment-2072854434