Skip to content

Commit

Permalink
Add Swift 6 to CI (peripheryapp#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch authored and rofle100lvl committed Aug 28, 2024
1 parent c6d40c7 commit dc011dd
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request: {}
env:
swift_package_resolve: swift package resolve
swift_build: swift build
swift_test: swift test
periphery_scan: ./.build/debug/periphery scan --quiet --clean-build
cache_version: 1
Expand All @@ -14,8 +15,10 @@ jobs:
strategy:
fail-fast: false
matrix:
xcode: ["15.4", "15.2"]
xcode: ["16.1", "15.4", "15.2"]
include:
- xcode: "16.1"
macos: macOS-14
- xcode: "15.4"
macos: macOS-14
- xcode: "15.2"
Expand Down Expand Up @@ -44,6 +47,8 @@ jobs:
- name: Resolve dependencies
if: steps.cache-resolved-dependencies.outputs.cache-hit != 'true'
run: ${{ env.swift_package_resolve }}
- name: Build
run: ${{ env.swift_build }}
- name: Scan
run: ${{ env.periphery_scan }} --strict
- name: Test
Expand All @@ -52,8 +57,11 @@ jobs:
strategy:
fail-fast: false
matrix:
swift: ["5.10", "5.9"]
swift: ["6.0-nightly", "5.10", "5.9"]
include:
- swift: "6.0-nightly"
container: "swiftlang/swift:nightly-6.0-jammy"
cache-version: 1
- swift: "5.10"
container: "swift:5.10"
cache-version: 1
Expand Down Expand Up @@ -83,6 +91,8 @@ jobs:
- name: Resolve dependencies
if: steps.cache-resolved-dependencies.outputs.cache-hit != 'true'
run: ${{ env.swift_package_resolve }}
- name: Build
run: ${{ env.swift_build }}
- name: Scan
run: ${{ env.periphery_scan }}
- name: Test
Expand Down

0 comments on commit dc011dd

Please sign in to comment.