From 137e1733d0e16a476c6125ddce675fc66083b9b6 Mon Sep 17 00:00:00 2001 From: Gwynne Raskind Date: Mon, 8 Apr 2024 08:34:55 -0500 Subject: [PATCH] Restore compatibility back to Swift 5.5 (#2) There was no reason for the minimum Swift version to be bumped so high, let's put it back down to 5.5. This should also allow the Vapor toolbox to retain compatibility with Xcode 13.2. --- .github/workflows/test.yml | 19 +++++++++++++++++++ Package.swift | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c81ed63..94fd33a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,3 +9,22 @@ on: jobs: unit-tests: uses: vapor/ci/.github/workflows/run-unit-tests.yml@main + + unit-tests-old: + if: ${{ !(github.event.pull_request.draft || false) }} + strategy: + fail-fast: false + matrix: + swift-image: + - swift:5.5-focal + - swift:5.6-focal + - swift:5.7-jammy + runs-on: ubuntu-latest + container: ${{ matrix.swift-image }} + timeout-minutes: 60 + steps: + - name: Check out code + uses: actions/checkout@v4 + - name: Run unit tests + run: SWIFT_DETERMINISTIC_HASHING=1 swift test --sanitize=thread + \ No newline at end of file diff --git a/Package.swift b/Package.swift index 93d867e..bb64407 100644 --- a/Package.swift +++ b/Package.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.7 +// swift-tools-version:5.5 import PackageDescription let package = Package(