Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macos-latest resolves to macos-12 while it is documented to refer to macos-14 #9663

Closed
3 of 13 tasks
erikmd opened this issue Apr 9, 2024 · 2 comments
Closed
3 of 13 tasks
Labels
bug report documentation Improvements or additions to documentation OS: macOS

Comments

@erikmd
Copy link

erikmd commented Apr 9, 2024

Description

The macos-latest runner image resolves to macos-12 (version 12.7.4) while it is documented to refer to macos-14.

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Version: 20240329.1

See also if need be: https://github.com/ocaml-sf/learn-ocaml/actions/runs/8621954279/job/23631973945?pr=597

Is it regression?

N/A

Expected behavior

According to https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories, we should get the Image: macos-14

Actual behavior

We get the Image: macos-12

And the build fails with:

xcbeautify: A full installation of Xcode.app 15.0 is required to compile
this software. Installing just the Command Line Tools is not sufficient.
Xcode 15.0 cannot be installed on macOS 12.
You must upgrade your version of macOS.
Error: xcbeautify: An unsatisfied requirement failed this build.

Repro steps

Push a commit in a repo's master branch with a following workflow such as:

name: macOS

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - '**'

jobs:
  build:
    name: Build learn-ocaml on macOS
    runs-on: macos-latest
    steps:
      - name: Check out the repo
        uses: actions/checkout@v3
      - name: MWE
        run: |
          set -ex
          
          sw_vers
          system_profiler SPSoftwareDataType
          uname -a
          
          brew update
          
          # homebrew fails to upgrade python due to unlinking failure
          # (cf. https://github.com/actions/setup-python/issues/577 )
          rm -f /usr/local/bin/2to3
          rm -f /usr/local/bin/idle3
          rm -f /usr/local/bin/pydoc3
          rm -f /usr/local/bin/python3
          rm -f /usr/local/bin/python3-config
          rm -f /usr/local/bin/2to3-3.*
          rm -f /usr/local/bin/idle3.*
          rm -f /usr/local/bin/pydoc3.*
          rm -f /usr/local/bin/python3.*
          rm -f /usr/local/bin/python3.*-config
          rm -f /usr/local/lib/libtcl8.6.dylib
          rm -f /usr/local/lib/libtk8.6.dylib
          rm -f /usr/local/bin/go
          rm -f /usr/local/bin/gofmt
          rm -f /usr/local/bin/node
          rm -f /usr/local/bin/npm
          rm -f /usr/local/bin/npx
          rm -f -r /usr/local/include/node
          rm -f -r /usr/local/share/doc/node
          rm -f -r /usr/local/lib/node_modules
          rm -f /usr/local/lib/dtrace/node.d
          rm -f /usr/local/share/man/man1/node.1
          rm -f /usr/local/share/systemtap
          
          brew upgrade
erikmd added a commit to pfitaxel/learn-ocaml that referenced this issue Apr 9, 2024
erikmd added a commit to pfitaxel/learn-ocaml that referenced this issue Apr 9, 2024
erikmd added a commit to pfitaxel/learn-ocaml that referenced this issue Apr 9, 2024
@erik-bershel erik-bershel added documentation Improvements or additions to documentation OS: macOS and removed needs triage labels Apr 10, 2024
@erik-bershel
Copy link
Contributor

Hey @erikmd!
We are in process of migration.
Closing as duplicate: #9640

erikmd added a commit to pfitaxel/learn-ocaml that referenced this issue Apr 10, 2024
@erikmd
Copy link
Author

erikmd commented Apr 10, 2024

OK Thanks @erik-bershel ! and sorry for not spotting the duplicate myself…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report documentation Improvements or additions to documentation OS: macOS
Projects
None yet
Development

No branches or pull requests

2 participants