From 12d349c573521dd918d54ad14f82e80ec75704d4 Mon Sep 17 00:00:00 2001 From: Bill Hollings Date: Wed, 3 Jul 2024 16:16:51 -0400 Subject: [PATCH] Update Github CI versions. - Use latest macOS and default Xcode versions for primary CI environment. - Github CI no longer supports macOS 11. Update legacy CI to macOS 12 and Xcode 13.4.1. --- .github/workflows/CI.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9ee53ee47..01cc1197f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -15,17 +15,19 @@ jobs: build: strategy: matrix: - xcode: [ "15.0" ] + # Primary build on latest macOS and its default Xcode version + os: [ "macos-latest" ] platform: [ "all", "macos", "ios" ] - os: [ "macos-13" ] upload_artifacts: [ true ] + select_xcode: [ false ] - # Legacy configurations + # Legacy build. Up to 3 versions behind latest (or beta). include: - - xcode: "12.5.1" + - os: "macos-12" + xcode: "13.4.1" platform: "macos" - os: "macos-11" upload_artifacts: false + select_xcode: true fail-fast: false name: 'MoltenVK (Xcode ${{ matrix.xcode }} - ${{ matrix.platform }})' @@ -44,7 +46,11 @@ jobs: with: python-version: '3.11' + - name: List available Xcode versions + run: ls /Applications | grep Xcode + - name: Select Xcode version + if: matrix.select_xcode == true run: sudo xcode-select -switch "${XCODE_DEV_PATH}" - name: Prep