Skip to content

Commit

Permalink
Update min Swift version to 5.6 and make platform versions consistent (
Browse files Browse the repository at this point in the history
…#217)

Update minimum Swift version to 5.6 and make platform versions consistent.
  • Loading branch information
gwynne authored Apr 14, 2023
1 parent c5ca8e4 commit 829ae8f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
api-breakage:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
container: swift:5.7-jammy
container: swift:5.8-jammy
steps:
- name: Check out package
uses: actions/checkout@v3
Expand All @@ -78,20 +78,21 @@ jobs:

# Unit tests (Linux)
linux-unit:
if: github.event_name == 'pull_request'
if: ${{ github.event_name == 'pull_request' }}
strategy:
fail-fast: false
matrix:
dbimage:
- mysql:5.7
- mysql:8.0
- mariadb:10.3
- mariadb:10.7
- mariadb:10.4
- mariadb:10.11
- percona:8.0
runner:
- swift:5.5-bionic
- swift:5.6-focal
- swift:5.7-jammy
- swift:5.8-jammy
- swiftlang/swift:nightly-5.9-jammy
- swiftlang/swift:nightly-main-jammy
runs-on: ubuntu-latest
container: ${{ matrix.runner }}
Expand All @@ -118,14 +119,13 @@ jobs:

# Unit tests (macOS)
macos-unit:
if: github.event_name == 'pull_request'
if: ${{ github.event_name == 'pull_request' }}
strategy:
fail-fast: false
matrix:
formula:
- mysql@8.0
macos:
- macos-11
- macos-12
xcode:
- latest-stable
Expand Down Expand Up @@ -162,6 +162,7 @@ jobs:
test-exports:
name: Test exports
runs-on: ubuntu-latest
container: swift:5.8-jammy
steps:
- name: Check out Vapor
uses: actions/checkout@v3
Expand Down
7 changes: 5 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
// swift-tools-version:5.5
// swift-tools-version:5.6
import PackageDescription

let package = Package(
name: "fluent-mysql-driver",
platforms: [
.macOS(.v10_15)
.macOS(.v10_15),
.iOS(.v13),
.watchOS(.v6),
.tvOS(.v13),
],
products: [
.library(name: "FluentMySQLDriver", targets: ["FluentMySQLDriver"]),
Expand Down

0 comments on commit 829ae8f

Please sign in to comment.