File tree Expand file tree Collapse file tree 1 file changed +20
-44
lines changed Expand file tree Collapse file tree 1 file changed +20
-44
lines changed Original file line number Diff line number Diff line change 1
-
2
1
name : build
3
2
4
3
on :
5
4
push :
6
- branches : [ master ]
5
+ branches : [ main ]
7
6
pull_request :
8
- branches : [ master ]
7
+ branches : [ main ]
9
8
10
9
jobs :
11
10
build-macos :
12
- runs-on : ${{ matrix.os }}
13
- strategy :
14
- matrix :
15
- os : [macos-12, macos-11]
11
+ runs-on : macos-14
16
12
steps :
17
- - uses : actions/checkout@v2
18
- - name : build
19
- run : |
20
- swift --version
21
- swift build
13
+ - uses : actions/checkout@v3
14
+ - uses : SwiftyLab/setup-swift@latest
15
+ with :
16
+ swift-version : " 5.10.0"
17
+ - name : build
18
+ run : |
19
+ swift --version
20
+ swift build
22
21
build-linux :
23
- runs-on : ${{ matrix.os }}
24
- strategy :
25
- matrix :
26
- os : [ubuntu-20.04, ubuntu-18.04]
27
- swift : [5.6.2, 5.5.3]
22
+ runs-on : ubuntu-22.04
28
23
steps :
29
- - uses : actions/checkout@v2
30
-
31
- - name : cache swift toolchains
32
- uses : actions/cache@v2
33
- with :
34
- path : swift-${{ matrix.swift }}.tar.gz
35
- key : ${{ matrix.os }}:swift:${{ matrix.swift }}
36
-
37
- - name : cache status
38
- id : cache_status
39
- uses : andstor/file-existence-action@v1
40
- with :
41
- files : swift-${{ matrix.swift }}.tar.gz
42
-
43
- - name : download swift toolchain
44
- if : steps.cache_status.outputs.files_exists == 'false'
45
- run : curl https://download.swift.org/swift-${{ matrix.swift }}-release/$(echo ${{ matrix.os }} | sed 's/[^a-zA-Z0-9]//g')/swift-${{ matrix.swift }}-RELEASE/swift-${{ matrix.swift }}-RELEASE-$(echo ${{ matrix.os }} | sed 's/[^a-zA-Z0-9\.]//g').tar.gz --output swift-${{ matrix.swift }}.tar.gz
46
-
47
- - name : set up swift
48
- run : |
49
- mkdir -p $GITHUB_WORKSPACE/swift-${{ matrix.swift }}
50
- tar -xzf swift-${{ matrix.swift }}.tar.gz -C $GITHUB_WORKSPACE/swift-${{ matrix.swift }} --strip 1
51
- echo "$GITHUB_WORKSPACE/swift-${{ matrix.swift }}/usr/bin" >> $GITHUB_PATH
52
- - name : build
53
- run : |
54
- swift --version
55
- swift build
24
+ - uses : actions/checkout@v3
25
+ - uses : SwiftyLab/setup-swift@latest
26
+ with :
27
+ swift-version : " 5.10.0"
28
+ - name : build
29
+ run : |
30
+ swift --version
31
+ swift build
You can’t perform that action at this time.
0 commit comments