From 894183f03906f6a41e5539ce496cc8f2834a7b36 Mon Sep 17 00:00:00 2001 From: Ramon Torres Date: Sat, 20 Apr 2024 12:29:17 -0400 Subject: [PATCH] Update CI runner to macos-14 and run tests with Xcode 15. (#17) * Inspect versions * Switch Xcode * Test * Print OS info * Update macOS runner * Cleanup * Cleanup * Test on Catalyst and visionOS * Disable visionOS test --- .github/workflows/build.yml | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2d35a56..e8f0536 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,42 +2,49 @@ name: Build on: push: branches: - - 'main' + - "main" paths: - - '.github/workflows/build.yml' - - '**.swift' + - ".github/workflows/build.yml" + - "**.swift" pull_request: paths: - - '.github/workflows/build.yml' - - '**.swift' + - ".github/workflows/build.yml" + - "**.swift" concurrency: group: build-${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: build-macos: name: Build macOS - runs-on: macos-latest + runs-on: macos-14 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: "15.0" - name: Run tests run: swift test -v build-other-platforms: - runs-on: macos-latest + runs-on: macos-14 name: Build ${{ matrix.destination.name }} strategy: matrix: destination: - - - name: iOS + - name: iOS value: "platform=iOS Simulator,name=iPhone 14,OS=latest" - - - name: tvOS + - name: tvOS value: "platform=tvOS Simulator,name=Apple TV,OS=latest" - - - name: watchOS + - name: watchOS value: "platform=watchOS Simulator,name=Apple Watch Series 8 (41mm),OS=latest" + - name: Catalyst + value: "platform=macOS,variant=Mac Catalyst,arch=arm64" + # - name: visionOS + # value: "generic/platform=visionOS" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: "15.0" - name: Build run: |- set -o pipefail && NSUnbufferedIO=YES xcodebuild clean build \