Skip to content

Commit

Permalink
try with different swift versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrence-forooghian committed Aug 1, 2024
1 parent 5a065d8 commit 7c136c8
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
name: Check

# TODO fail-fast or whatever it's called

on:
workflow_dispatch:
pull_request:
Expand All @@ -14,7 +12,11 @@ jobs:
strategy:
fail-fast: false
matrix:
xcode-version: [15.3, 16-beta]
tooling:
- xcode-version: 15.3
swift-version: 5
- xcode-version: 16-beta
swift-version: 6
steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
Expand All @@ -27,23 +29,27 @@ jobs:
- run: script/lint/check

# https://forums.swift.org/t/warnings-as-errors-for-libraries-frameworks/58393/2
- run: swift build -Xswiftc -warnings-as-errors
- run: swift test
- run: swift build -Xswiftc -warnings-as-errors -Xswiftc -swift-version -Xswiftc ${{ matrix.tooling.swift-version }}
- run: swift test -Xswiftc -warnings-as-errors -Xswiftc -swift-version -Xswiftc ${{ matrix.tooling.swift-version }}

check-on-platforms:
runs-on: macos-latest

strategy:
fail-fast: false
matrix:
xcode-version: [15.3, 16-beta]
tooling:
- xcode-version: 15.3
swift-version: 5
- xcode-version: 16-beta
swift-version: 6
platform: [macOS, iOS, tvOS]

steps:
- uses: actions/checkout@v4
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode-version }}
xcode-version: ${{ matrix.tooling.xcode-version }}

# TODO OS version, and ambiguity in platforms, and no match
- run: xcodebuild -scheme AblyChat -destination "platform=${{ matrix.platform }}"
Expand Down

0 comments on commit 7c136c8

Please sign in to comment.