File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change 7
7
branches : [ "*" ]
8
8
9
9
jobs :
10
- build :
11
- name : Swift ${{ matrix.swift }} on ${{ matrix.os }}
10
+ mac :
11
+ name : Swift on macOS
12
+ runs-on : macos-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - name : Build
16
+ run : swift build -v
17
+ - name : Run tests
18
+ run : swift test -v
19
+ linux :
20
+ name : Swift ${{ matrix.swift }} on Linux
21
+ runs-on : ubuntu-latest
22
+ container : swiftlang/swift:nightly-${{ matrix.swift }}-jammy
12
23
strategy :
13
- matrix :
14
- os : ["macos-latest", "ubuntu-latest"]
15
- swift : ["6.1"]
16
24
fail-fast : false
17
- runs-on : ${{ matrix.os }}
25
+ matrix :
26
+ swift : ["6.1", "6.2"]
18
27
steps :
19
- - uses : swift-actions/setup-swift@682457186b71c25a884c45c06f859febbe259240
20
- with :
21
- swift-version : ${{ matrix.swift }}
22
28
- uses : actions/checkout@v4
23
29
- name : Build
24
30
run : swift build -v
25
31
- name : Run tests
26
32
run : swift test -v
27
33
format :
28
34
name : Format
29
- runs-on : macos-latest
35
+ runs-on : ubuntu-latest
36
+ container : swift:6.1
30
37
steps :
31
- - uses : swift-actions/setup-swift@682457186b71c25a884c45c06f859febbe259240
32
- with :
33
- swift-version : " 6.1"
34
38
- uses : actions/checkout@v4
35
39
- name : Format
36
40
run : swift format lint **/*.swift -r -s
You can’t perform that action at this time.
0 commit comments