Skip to content

Commit 1d337ba

Browse files
committed
support swift 5.10
1 parent e6e7b88 commit 1d337ba

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ on:
66
pull_request:
77
branches: [ "master" ]
88

9-
env:
10-
DEVELOPER_DIR: /Applications/Xcode_16.0.app/Contents/Developer
11-
129
jobs:
1310
build:
1411
runs-on: macos-latest
12+
env:
13+
DEVELOPER_DIR: /Applications/Xcode_16.0.app/Contents/Developer
1514
steps:
1615
- uses: actions/checkout@v4
1716
with:
@@ -29,3 +28,13 @@ jobs:
2928
with:
3029
fail_ci_if_error: true
3130
verbose: true
31+
build-swift-5-10:
32+
runs-on: macos-14
33+
steps:
34+
- uses: actions/checkout@v4
35+
with:
36+
submodules: recursive
37+
- name: Check Swift version
38+
run: swift --version
39+
- name: Build
40+
run: swift build

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0
1+
5.10

Package@swift-5.10.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// swift-tools-version: 5.10
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "swift-environment-decoder",
7+
products: [
8+
.library(
9+
name: "EnvironmentDecoder",
10+
targets: ["EnvironmentDecoder"]),
11+
],
12+
dependencies: [
13+
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
14+
],
15+
targets: [
16+
.target(
17+
name: "EnvironmentDecoder"),
18+
])

0 commit comments

Comments
 (0)