-
|
This workflow passes on Here is its most recent run: https://github.com/smoelius/anchor-test/actions/runs/17711922650 Can anyone see what I am doing wrong? I have not had any problems running Anchor locally on a Mac, only in CI. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
I think this is likely caused by the GitHub Actions macOS runner, not by Anchor itself.
As a quick check, I would add this before installing/running Anchor: uname -m
sw_vers
solana --version
anchor --versionThe first thing I would try is pinning the macOS job to an Intel runner: - environment: [ubuntu-latest, macos-latest]
+ environment: [ubuntu-latest, macos-15-intel]or directly: runs-on: macos-15-intelI would also avoid installing Solana from So the likely issue is:
I would first try |
Beta Was this translation helpful? Give feedback.
I think this is likely caused by the GitHub Actions macOS runner, not by Anchor itself.
macos-latestcurrently resolves to a macOS arm64 / Apple Silicon runner. If your local Mac is Intel, or if the Solana/Anchor toolchain behaves differently on arm64 CI, that would explain why it works locally and onubuntu-latest, but fails only onmacos-latest.As a quick check, I would add this before installing/running Anchor:
The first thing I would try is pinning the macOS job to an Intel runner:
or directly:
I would also avoid instal…