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 cc60f67
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 cc60f67

Please sign in to comment.