Skip to content

Commit 700dba4

Browse files
Merge pull request #3 from SwiftPackageIndex/swift-6
Swift 6
2 parents 9e03737 + cc80ec2 commit 700dba4

File tree

3 files changed

+60
-2
lines changed

3 files changed

+60
-2
lines changed

.github/workflows/ci.yml

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Copyright Dave Verwer, Sven A. Schmidt, and other contributors.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: CI
16+
17+
on:
18+
workflow_dispatch:
19+
push:
20+
branches: [ main ]
21+
pull_request:
22+
branches: [ main ]
23+
24+
jobs:
25+
macOS:
26+
# https://github.com/actions/runner-images
27+
runs-on: macos-15
28+
strategy:
29+
matrix:
30+
xcode:
31+
- '16.3'
32+
steps:
33+
- uses: actions/checkout@v3
34+
- name: Get swift version
35+
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift --version
36+
# - name: Test
37+
# run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift test
38+
- name: Build release
39+
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift build -c release
40+
41+
Linux:
42+
# https://github.com/actions/runner-images
43+
runs-on: ubuntu-latest
44+
strategy:
45+
matrix:
46+
image:
47+
- swift:6.0
48+
- swift:6.1
49+
container:
50+
image: ${{ matrix.image }}
51+
steps:
52+
- uses: actions/checkout@v3
53+
- name: Get swift version
54+
run: swift --version
55+
# - name: Test
56+
# run: swift test
57+
- name: Build release
58+
run: swift build -c release

Sources/DependencyResolution/ProductDependency.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515

16-
public struct ProductDependency: Codable, Equatable {
16+
public struct ProductDependency: Codable, Equatable, Sendable {
1717
public var identity: String
1818
public var name: String
1919
public var url: String

Sources/DependencyResolution/ResolvedDependency.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515

16-
public struct ResolvedDependency: Codable, Equatable {
16+
public struct ResolvedDependency: Codable, Equatable, Sendable {
1717
public var packageName: String
1818
public var repositoryURL: String
1919

0 commit comments

Comments
 (0)