Skip to content

Commit

Permalink
Update CI runner to macos-14 and run tests with Xcode 15. (#17)
Browse files Browse the repository at this point in the history
* Inspect versions

* Switch Xcode

* Test

* Print OS info

* Update macOS runner

* Cleanup

* Cleanup

* Test on Catalyst and visionOS

* Disable visionOS test
  • Loading branch information
raymondjavaxx authored Apr 20, 2024
1 parent bf488f2 commit 894183f
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 894183f

Please sign in to comment.