From 91894bb89ebf8b27e251e4e8074c2fe65837cd3b Mon Sep 17 00:00:00 2001 From: Apprentice-Alchemist <53486764+Apprentice-Alchemist@users.noreply.github.com> Date: Fri, 26 Apr 2024 10:13:00 +0200 Subject: [PATCH] [ci] Specify macOS runner versions instead of using macos-latest. Use `runner.arch` to decide where to upload the macOS artifacts. --- .github/workflows/main.yml | 6 +++--- extra/github-actions/build-mac.yml | 4 ++-- extra/github-actions/workflows/main.yml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 04b049d2ee9..423d2608fa6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -448,7 +448,7 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-latest, macos-14] + os: [macos-14, macos-13] runs-on: ${{ matrix.os }} env: PLATFORM: mac @@ -543,14 +543,14 @@ jobs: otool -L ./haxelib - name: Upload artifact (x64) - if: matrix.os == 'macos-latest' + if: runner.arch == 'X64' uses: actions/upload-artifact@v4 with: name: macX64Binaries path: out - name: Upload artifact (arm) - if: matrix.os == 'macos-14' + if: runner.arch == 'ARM64' uses: actions/upload-artifact@v4 with: name: macArmBinaries diff --git a/extra/github-actions/build-mac.yml b/extra/github-actions/build-mac.yml index 543d9ba1105..65dcc41b4d8 100644 --- a/extra/github-actions/build-mac.yml +++ b/extra/github-actions/build-mac.yml @@ -56,14 +56,14 @@ otool -L ./haxelib - name: Upload artifact (x64) - if: matrix.os == 'macos-latest' + if: runner.arch == 'X64' uses: actions/upload-artifact@v4 with: name: macX64Binaries path: out - name: Upload artifact (arm) - if: matrix.os == 'macos-14' + if: runner.arch == 'ARM64' uses: actions/upload-artifact@v4 with: name: macArmBinaries diff --git a/extra/github-actions/workflows/main.yml b/extra/github-actions/workflows/main.yml index 1e360f97e8e..354038f1260 100644 --- a/extra/github-actions/workflows/main.yml +++ b/extra/github-actions/workflows/main.yml @@ -308,7 +308,7 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-latest, macos-14] + os: [macos-14, macos-13] runs-on: ${{ matrix.os }} env: PLATFORM: mac