From f3d0b8a553958a10fe94df7d6ca2513d5690e8e3 Mon Sep 17 00:00:00 2001 From: Kris Austin Date: Sun, 4 Oct 2026 19:12:32 -0500 Subject: [PATCH] ci: move macOS jobs off the retiring macos-14 runner (#16088) --- .github/workflows/build_all.yml | 6 +++--- .github/workflows/build_check_cache.yml | 2 +- .github/workflows/build_orca.yml | 8 +++++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index 0fcb6ba869..ab4cd57f5f 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -127,7 +127,7 @@ jobs: if: ${{ !cancelled() && (github.event_name != 'schedule' || github.repository == 'OrcaSlicer/OrcaSlicer') }} uses: ./.github/workflows/build_check_cache.yml with: - os: ${{ vars.SELF_HOSTED && 'orca-macos-arm64' || 'macos-14' }} + os: ${{ vars.SELF_HOSTED && 'orca-macos-arm64' || 'macos-15' }} arch: ${{ matrix.arch }} build-deps-only: ${{ inputs.build-deps-only || false }} force-build: ${{ github.event_name == 'schedule' }} @@ -138,7 +138,7 @@ jobs: if: ${{ !cancelled() && needs.build_macos_arch.result == 'success' && !inputs.build-deps-only && (github.event_name != 'schedule' || github.repository == 'OrcaSlicer/OrcaSlicer') }} uses: ./.github/workflows/build_orca.yml with: - os: ${{ vars.SELF_HOSTED && 'orca-macos-arm64' || 'macos-14' }} + os: ${{ vars.SELF_HOSTED && 'orca-macos-arm64' || 'macos-15' }} arch: universal macos-combine-only: true secrets: inherit @@ -182,7 +182,7 @@ jobs: if: ${{ !cancelled() && success() }} uses: ./.github/workflows/unit_tests.yml with: - os: ${{ vars.SELF_HOSTED && 'orca-macos-arm64' || 'macos-14' }} + os: ${{ vars.SELF_HOSTED && 'orca-macos-arm64' || 'macos-15' }} artifact: ${{ github.sha }}-tests-macos-arm64 test-dir: build/arm64/tests # Slice a two-colour cube through every shipped printer, and through every diff --git a/.github/workflows/build_check_cache.yml b/.github/workflows/build_check_cache.yml index 2da05e1d69..31fdd6cb28 100644 --- a/.github/workflows/build_check_cache.yml +++ b/.github/workflows/build_check_cache.yml @@ -40,7 +40,7 @@ jobs: # Anything that changes how the tree is built belongs in the key, or a job # restores one it cannot use. Linux amd64 passes no arch deliberately, so # 'linux-clang' keeps the cache it already has. - cache-os: ${{ runner.os == 'macOS' && format('macos-{0}', inputs.arch) || (runner.os == 'Windows' && format('windows-{0}-{1}', inputs.arch, inputs.compiler) || format('linux-clang{0}', inputs.arch && format('-{0}', inputs.arch) || '')) }} + cache-os: ${{ runner.os == 'macOS' && format('{0}-{1}', inputs.os, inputs.arch) || (runner.os == 'Windows' && format('windows-{0}-{1}', inputs.arch, inputs.compiler) || format('linux-clang{0}', inputs.arch && format('-{0}', inputs.arch) || '')) }} # The Windows ARM64 deps build in build-arm64, all others under build; # build_deps.yml and build_orca.yml pass the Windows directory to build_win.bat. dep-folder-name: ${{ runner.os == 'macOS' && format('/{0}', inputs.arch) || (runner.os == 'Windows' && inputs.arch == 'arm64') && '-arm64/OrcaSlicer_dep' || '/OrcaSlicer_dep' }} diff --git a/.github/workflows/build_orca.yml b/.github/workflows/build_orca.yml index 98f0d66032..7b001a8c48 100644 --- a/.github/workflows/build_orca.yml +++ b/.github/workflows/build_orca.yml @@ -183,10 +183,12 @@ jobs: - name: Free disk space if: runner.os == 'macOS' && !inputs.macos-combine-only && !vars.SELF_HOSTED run: | - df -hI /dev/disk3s1s1 - sudo find /Applications -maxdepth 1 -type d -name "Xcode_*.app" ! -name "Xcode_15.4.app" -exec rm -rf {} + + df -hI / + # Keep only the selected Xcode + xcode=$(basename "$(cd "$(xcode-select -p)/../.." && pwd -P)") + sudo find /Applications -maxdepth 1 -type d -name "Xcode_*.app" ! -name "$xcode" -exec rm -rf {} + sudo rm -rf ~/Library/Developer/CoreSimulator/Caches/* - df -hI /dev/disk3s1s1 + df -hI / - name: Build slicer mac if: runner.os == 'macOS' && !inputs.macos-combine-only