actions / runner

The Runner for GitHub Actions :rocket:
https://github.com/features/actions
MIT License
4.65k stars 895 forks source link

Builds requesting runs-on `macos-14` and getting `macos-14-arm64` #3256

Closed leighmcculloch closed 1 month ago

leighmcculloch commented 2 months ago

Describe the bug

Builds requesting runs-on macos-14 and getting macos-14-arm64.

To Reproduce Steps to reproduce the behavior:

  1. Run a job that requests macos-14 or macos-latest

Expected behavior That the workflow will run macos x86_64.

Runner Version and Platform

Version of your runner? 20240415.6

OS of the machine running the runner? macOS

What's not working?

Screenshot 2024-04-24 at 9 28 59 pm

Ref: https://github.com/stellar/binaries/actions/runs/8815749910/job/24198334002?pr=20

koffie commented 2 months ago

We actually have the same problem with macos-latest

https://github.com/QuTech-Delft/quantuminspire2/actions/runs/8844984860/job/24288018010

sobolk commented 2 months ago

We seem to be running into problems here https://github.com/aws-amplify/amplify-backend/actions/runs/8852791618/job/24312497620 .

The summary is that:

  1. A job installs dependencies on macos-latest which now resolves to ARM64 and OSX14. Some dependencies come with arch dependent binaries (we're on NodeJS). This job caches result of installation.
  2. Another job runs on macos-latest-xl which still resolves to OSX12 and runs on Intel. It restores previously cached artifacts that came from ARM64 worker. Which leads to runtime failures.

When is macos-latest-xl planned to match macos-latest with respect to architecture and OSX version?

pvdrz commented 2 months ago

Same issue here: https://github.com/rust-lang/rust-bindgen/actions/runs/8807570984/job/24315825391

macos-latest is running on an arm machine.

leighmcculloch commented 2 months ago

According to this post by GitHub in January the macos-14 runner is exclusively arm64: