Skip to content

Drop support for Swift versions prior to 5.8 #339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [pull_request]
jobs:
codecov:
container:
image: swift:5.7
image: swift:5.8
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
60 changes: 2 additions & 58 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,62 +13,6 @@ jobs:
fail-fast: false
matrix:
image:
- swift:5.1-xenial
- swift:5.1-bionic
- swift:5.2-xenial
- swift:5.2-bionic
- swift:5.2-focal
- swift:5.2-centos8
- swift:5.2-amazonlinux2
- swift:5.3-xenial
- swift:5.3-bionic
- swift:5.3-focal
- swift:5.3-centos8
- swift:5.3-amazonlinux2
# see below for 5.4, 5.5, etc.
container: ${{ matrix.image }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run tests
run: swift test --enable-test-discovery
# 5.4 is separate because there was a bug in the compiler that caused
# us to need to run swift tets with the -sil-verify-none flag.
linux-5_4:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- swift:5.4-xenial
- swift:5.4-bionic
- swift:5.4-focal
- swift:5.4-centos8
- swift:5.4-amazonlinux2
container: ${{ matrix.image }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run tests (without test discovery flag)
run: swift test -Xswiftc -Xfrontend -Xswiftc -sil-verify-none
linux-5_5-plus:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- swift:5.5-xenial
- swift:5.5-bionic
- swift:5.5-focal
- swift:5.5-centos8
- swift:5.5-amazonlinux2
- swift:5.6-bionic
- swift:5.6-focal
- swift:5.6-amazonlinux2
- swift:5.7-bionic
- swift:5.7-focal
- swift:5.7-jammy
- swift:5.7-amazonlinux2
- swift:5.8-bionic
- swift:5.8-focal
- swift:5.8-jammy
Expand All @@ -87,7 +31,7 @@ jobs:
- name: Run tests
run: swift test
osx:
runs-on: macOS-12
runs-on: macOS-13
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/setup-xcode@v1
Expand All @@ -96,4 +40,4 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Run tests
run: swift test --enable-test-discovery
run: swift test
7 changes: 4 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// swift-tools-version:5.1
// swift-tools-version: 5.8

import PackageDescription

let package = Package(
name: "OpenAPIKit",
platforms: [
.macOS(.v10_10),
.macOS(.v10_13),
.iOS(.v11)
],
products: [
Expand All @@ -25,7 +25,8 @@ let package = Package(
targets: [
.target(
name: "OpenAPIKitCore",
dependencies: []),
dependencies: [],
exclude: ["AnyCodable/README.md"]),
.testTarget(
name: "OpenAPIKitCoreTests",
dependencies: ["OpenAPIKitCore"]),
Expand Down