Skip to content

Commit

Permalink
Modernize test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
weichsel committed Aug 16, 2023
1 parent 22ed01e commit de9b335
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
Xcode:
strategy:
matrix:
xcode_version: ['13.2.1', '13.1', '13.0', '12.5.1', '12.4', '11.7']
runs-on: macos-11
xcode_version: ['13.3.1', '13.4', '14.0.1', '14.1', '14.2']
runs-on: macos-12
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
steps:
Expand All @@ -22,7 +22,7 @@ jobs:
Linux:
strategy:
matrix:
tag: ['5.1', '5.2', '5.3']
tag: ['5.1', '5.3', '5.8']
runs-on: ubuntu-latest
container:
image: swift:${{ matrix.tag }}
Expand Down
27 changes: 27 additions & 0 deletions Package@swift-5.8.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// swift-tools-version:5.8
import PackageDescription

#if canImport(Compression)
let targets: [Target] = [
.target(name: "ZIPFoundation"),
.testTarget(name: "ZIPFoundationTests", dependencies: ["ZIPFoundation"])
]
#else
let targets: [Target] = [
.systemLibrary(name: "CZLib", pkgConfig: "zlib", providers: [.brew(["zlib"]), .apt(["zlib"])]),
.target(name: "ZIPFoundation", dependencies: ["CZLib"], cSettings: [.define("_GNU_SOURCE", to: "1")]),
.testTarget(name: "ZIPFoundationTests", dependencies: ["ZIPFoundation"])
]
#endif

let package = Package(
name: "ZIPFoundation",
platforms: [
.macOS(.v10_11), .iOS(.v9), .tvOS(.v9), .watchOS(.v2)
],
products: [
.library(name: "ZIPFoundation", targets: ["ZIPFoundation"])
],
targets: targets,
swiftLanguageVersions: [.v4, .v4_2, .v5]
)

0 comments on commit de9b335

Please sign in to comment.