This repository was archived by the owner on Oct 17, 2021. It is now read-only.
File tree 3 files changed +52
-14
lines changed
3 files changed +52
-14
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,19 @@ on: [push]
4
4
5
5
jobs :
6
6
macos :
7
- runs-on : macOS-latest
7
+ runs-on : macos-latest
8
+
9
+ strategy :
10
+ matrix :
11
+ xcode :
12
+ - " 11.7" # Swift 5.2
13
+ - " 12" # Swift 5.3
14
+
15
+ name : " macOS Catalina (Xcode ${{ matrix.xcode }})"
8
16
9
17
steps :
10
18
- name : Checkout
11
- uses : actions/checkout@v1
19
+ uses : actions/checkout@v2
12
20
- name : Build and Test
13
21
run : swift test
14
22
@@ -17,13 +25,15 @@ jobs:
17
25
18
26
strategy :
19
27
matrix :
20
- swift : ["5.1"]
28
+ swift : ["5.2", "5.3"]
29
+
30
+ name : " Linux (Swift ${{ matrix.swift }})"
21
31
22
32
container :
23
33
image : swift:${{ matrix.swift }}
24
34
25
35
steps :
26
36
- name : Checkout
27
- uses : actions/checkout@v1
37
+ uses : actions/checkout@v2
28
38
- name : Build and Test
29
39
run : swift test --enable-test-discovery
Original file line number Diff line number Diff line change 1
- // swift-tools-version:5.1
2
- // The swift-tools-version declares the minimum version of Swift required to build this package.
1
+ // swift-tools-version:5.3
3
2
4
3
import PackageDescription
5
4
6
5
let package = Package (
7
6
name: " SwiftMarkup " ,
8
7
products: [
9
- // Products define the executables and libraries produced by a package, and make them visible to other packages.
10
8
. library(
11
9
name: " SwiftMarkup " ,
12
10
targets: [ " SwiftMarkup " ]
13
11
) ,
14
12
] ,
15
13
dependencies: [
16
- // Dependencies declare other packages that this package depends on.
17
- . package ( url: " https://github.com/SwiftDocOrg/CommonMark.git " , . upToNextMinor( from: " 0.5.0 " ) ) ,
14
+ . package ( name: " CommonMark " ,
15
+ url: " https://github.com/SwiftDocOrg/CommonMark.git " ,
16
+ . upToNextMinor( from: " 0.5.0 " ) ) ,
18
17
] ,
19
18
targets: [
20
- // Targets are the basic building blocks of a package. A target can define a module or a test suite.
21
- // Targets can depend on other targets in this package, and on products in packages which this package depends on.
22
19
. target(
23
20
name: " SwiftMarkup " ,
24
- dependencies: [ " CommonMark " ]
21
+ dependencies: [
22
+ . product( name: " CommonMark " , package : " CommonMark " )
23
+ ]
25
24
) ,
26
25
. testTarget(
27
26
name: " SwiftMarkupTests " ,
28
- dependencies: [ " SwiftMarkup " ]
29
- ) ,
27
+ dependencies: [
28
+ . target( name: " SwiftMarkup " )
29
+ ]
30
+ )
30
31
]
31
32
)
Original file line number Diff line number Diff line change
1
+ // swift-tools-version:5.1
2
+
3
+ import PackageDescription
4
+
5
+ let package = Package (
6
+ name: " SwiftMarkup " ,
7
+ products: [
8
+ . library(
9
+ name: " SwiftMarkup " ,
10
+ targets: [ " SwiftMarkup " ]
11
+ ) ,
12
+ ] ,
13
+ dependencies: [
14
+ . package ( url: " https://github.com/SwiftDocOrg/CommonMark.git " ,
15
+ . upToNextMinor( from: " 0.5.0 " ) ) ,
16
+ ] ,
17
+ targets: [
18
+ . target(
19
+ name: " SwiftMarkup " ,
20
+ dependencies: [ " CommonMark " ]
21
+ ) ,
22
+ . testTarget(
23
+ name: " SwiftMarkupTests " ,
24
+ dependencies: [ " SwiftMarkup " ]
25
+ )
26
+ ]
27
+ )
You can’t perform that action at this time.
0 commit comments