1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 02:35:46 +01:00

Upgrade GitHub Actions CI to macOS 14 ahead of deprecation (#22601)

* Upgrade GitHub Actions CI to macOS 14 ahead of deprecation

* Only run macOS tests on the now-native arm64 platform
This commit is contained in:
Aaron van Geffen
2024-09-08 09:35:51 +02:00
committed by GitHub
parent d69002c445
commit 2d5a49faf7

View File

@@ -190,23 +190,23 @@ jobs:
if-no-files-found: error
macos-cmake:
name: macOS (${{ matrix.arch }}) using CMake
runs-on: macos-12
runs-on: macos-14
needs: check-code-formatting
strategy:
fail-fast: false
matrix:
arch: [x64, arm64]
include:
- arch: x64
cache_key: macos-x64
- arch: arm64
cache_key: macos-arm64
# Note: only build/run tests on the native architecture of the CI agent
# GitHub macos-12 agents are all Intel, but as of 2024-04-25 new images, e.g. macos-14 (current macos-latest) are arm64
# See 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
build_flags: -DARCH="x86_64" -DWITH_TESTS=on
build_flags: -DARCH="arm64" -DWITH_TESTS=on
run_tests: true
- arch: arm64
cache_key: macos-arm64
build_flags: -DARCH="arm64"
- arch: x64
cache_key: macos-x64
build_flags: -DARCH="x86_64"
run_tests: false
steps:
- name: Checkout
@@ -249,7 +249,7 @@ jobs:
if: ${{matrix.run_tests}}
macos-universal:
name: macOS universal app bundle
runs-on: macos-12
runs-on: macos-14
needs: macos-cmake
steps:
- name: Checkout