From d130d3626ad0b6f76ce611f7c3c2711acdacc0e3 Mon Sep 17 00:00:00 2001 From: David Mohundro Date: Tue, 20 Aug 2024 21:00:52 -0500 Subject: [PATCH] fix: don't run swift-testing unless v6 --- .github/workflows/main.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7e07fda..f6be0c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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