Skip to content

Commit

Permalink
Add tvos/watchos build/tests, bump macos version
Browse files Browse the repository at this point in the history
  • Loading branch information
klundberg committed Jul 27, 2023
1 parent a7c3a55 commit 411db22
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ on:

jobs:
build-mac:
runs-on: macos-12
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build
run: swift build --build-tests
- name: Run tests
Expand All @@ -29,12 +29,34 @@ jobs:
run: carthage build --no-skip-current --verbose --use-xcframeworks --platform macOS

build-ios:
runs-on: macos-12
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build
run: |
swift build -Xswiftc "-sdk" \
swift test -Xswiftc "-sdk" \
-Xswiftc `xcrun --sdk iphonesimulator --show-sdk-path` \
-Xswiftc "-target" \
-Xswiftc "x86_64-apple-ios`xcrun --show-sdk-version --sdk iphonesimulator`-simulator"
build-tvos:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Build
run: |
swift test -Xswiftc "-sdk" \
-Xswiftc `xcrun --sdk appletvsimulator --show-sdk-path` \
-Xswiftc "-target" \
-Xswiftc "x86_64-apple-tvos`xcrun --show-sdk-version --sdk appletvsimulator`-simulator"
build-watchos:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Build
run: |
swift test -Xswiftc "-sdk" \
-Xswiftc `xcrun --sdk watchsimulator --show-sdk-path` \
-Xswiftc "-target" \
-Xswiftc "x86_64-apple-watchos`xcrun --show-sdk-version --sdk watchsimulator`-simulator"

0 comments on commit 411db22

Please sign in to comment.