Skip to content

Commit

Permalink
fix: don't run swift-testing unless v6
Browse files Browse the repository at this point in the history
  • Loading branch information
drmohundro committed Aug 21, 2024
1 parent 2d7efdf commit e1aa892
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: "16.0-beta"
xcode-version: "16.1-beta"

- name: Build and Test
env:
Expand All @@ -57,23 +57,49 @@ jobs:
matrix:
include:
- image: swift:5.8-focal
skip-testing: true

- image: swift:5.8-jammy
skip-testing: true

- image: swift:5.8-rhel-ubi9
skip-testing: true

- image: swift:5.9-focal
skip-testing: true

- image: swift:5.9-jammy
skip-testing: true

- image: swift:5.9-rhel-ubi9
skip-testing: true

- image: swift:5.10-focal
skip-testing: true

- image: swift:5.10-jammy
skip-testing: true

- image: swift:5.10-rhel-ubi9
skip-testing: true

- image: swiftlang/swift:nightly-focal
perform-testing: true

- image: swiftlang/swift:nightly-jammy
perform-testing: true
container:
image: ${{ matrix.image }}
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
if: ${{ matrix.skip-testing }}
run: |
swift build
- name: Build and test
if: ${{ matrix.perform-testing }}
run: |
swift build --build-tests
swift test
Expand Down

0 comments on commit e1aa892

Please sign in to comment.