File tree Expand file tree Collapse file tree 13 files changed +57
-144
lines changed Expand file tree Collapse file tree 13 files changed +57
-144
lines changed Original file line number Diff line number Diff line change 9
9
semantic-release :
10
10
runs-on : ubuntu-22.04
11
11
steps :
12
- - uses : actions/checkout@v3
12
+ - uses : actions/checkout@v4
13
13
with :
14
14
fetch-depth : 0
15
15
@@ -52,14 +52,14 @@ jobs:
52
52
failTitle: false" > .releaserc.yml
53
53
54
54
- name : Setup Node.js
55
- uses : actions/setup-node@v3
55
+ uses : actions/setup-node@v4
56
56
with :
57
- node-version : " lts/* "
57
+ node-version : ' 20 '
58
58
59
59
- name : Install semantic-release
60
60
run : |
61
- npm install semantic-release conventional-changelog-conventionalcommits -D
62
-
61
+ npm install semantic-release@v24 conventional-changelog-conventionalcommits@v8 -D
62
+ npm list
63
63
- name : Release
64
64
env :
65
65
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 12
12
timeout-minutes : 30
13
13
14
14
steps :
15
- - uses : actions/checkout@v3
15
+ - uses : actions/checkout@v4
16
16
with :
17
17
fetch-depth : 0
18
18
- name : Ubuntu deps
Original file line number Diff line number Diff line change @@ -11,17 +11,21 @@ jobs:
11
11
runs-on : [ubuntu-22.04]
12
12
timeout-minutes : 60
13
13
steps :
14
- - uses : actions/checkout@v3
14
+ - uses : actions/checkout@v4
15
15
16
16
- name : Ubuntu deps
17
17
if : ${{ runner.os == 'Linux' }}
18
18
run : |
19
- sudo apt-get install -y libjemalloc-dev llvm-15
19
+ sudo apt-get install -y libjemalloc-dev
20
+
21
+ - uses : swift-actions/setup-swift@v2
22
+
23
+ - name : Swift version
24
+ run : swift --version
20
25
21
26
- name : Run tests
22
27
continue-on-error : true
23
- run : |
24
- [ -d Tests ] && swift test --parallel --enable-code-coverage
28
+ run : swift test --parallel --enable-code-coverage
25
29
26
30
- name : Export code coverage
27
31
run : |
@@ -32,12 +36,12 @@ jobs:
32
36
fi
33
37
34
38
if [ -f ${xctest_binary} ]; then
35
- llvm-cov-15 export -format="lcov" ${xctest_binary} -instr-profile .build/debug/codecov/default.profdata > info.lcov
39
+ llvm-cov export -format="lcov" ${xctest_binary} -instr-profile .build/debug/codecov/default.profdata > info.lcov
36
40
fi
37
41
38
42
- name : Upload codecov
39
- uses : codecov/codecov-action@v2
43
+ uses : codecov/codecov-action@v4
40
44
with :
41
- token : ${{ secrets.CODECOV_REPO_TOKEN }}
45
+ token : ${{ secrets.CODECOV_REPO_TOKEN }}
42
46
files : info.lcov
43
47
fail_ci_if_error : true
Original file line number Diff line number Diff line change 13
13
timeout-minutes : 60
14
14
runs-on : [ubuntu-latest]
15
15
steps :
16
- - uses : actions/checkout@v3
16
+ - uses : actions/checkout@v4
17
17
- name : GitHub Action for SwiftLint with --strict
18
18
uses : norio-nomura/action-swiftlint@3.2.1
19
19
with :
Original file line number Diff line number Diff line change 1
- name : Swift Linux build
1
+ name : Linux build
2
2
3
3
on :
4
4
workflow_dispatch :
@@ -14,17 +14,17 @@ jobs:
14
14
fail-fast : false
15
15
matrix :
16
16
os : [ubuntu-latest]
17
- swift : ["5.7", "5.8"]
18
-
17
+ # swift: [ "5.10", "6.0" ]
19
18
20
19
runs-on : ${{ matrix.os }}
21
20
22
21
steps :
23
- - uses : fwal/setup-swift@v1.23.0
22
+ - uses : swift-actions/setup-swift@v2
23
+ if : ${{ false }}
24
24
with :
25
25
swift-version : ${{ matrix.swift }}
26
26
27
- - uses : actions/checkout@v3
27
+ - uses : actions/checkout@v4
28
28
29
29
- name : Ubuntu deps
30
30
if : ${{ runner.os == 'Linux' }}
38
38
run : swift build
39
39
40
40
- name : Run tests
41
- run : |
42
- [ -d Tests ] && swift test --parallel
41
+ run : swift test --parallel
42
+
43
+ - name : Run tests (release)
44
+ run : swift test -c release --parallel
Original file line number Diff line number Diff line change 1
- name : Swift macOS build
1
+ name : macOS build
2
2
3
3
on :
4
4
workflow_dispatch :
5
5
push :
6
6
branches : [ main ]
7
7
pull_request :
8
8
branches : [ main ]
9
-
9
+
10
10
jobs :
11
11
build-macos :
12
12
timeout-minutes : 60
13
13
strategy :
14
14
fail-fast : false
15
15
matrix :
16
- os : [macos-13 ]
17
- swift : ["5.7 ", "5.8" ]
16
+ os : [macos-15 ]
17
+ # swift: [ "5.10 ", "6.0" ]
18
18
19
19
runs-on : ${{ matrix.os }}
20
20
21
21
steps :
22
- - uses : fwal/setup-swift@v1.24.0
22
+ - uses : swift-actions/setup-swift@v2
23
+ if : ${{ false }}
23
24
with :
24
25
swift-version : ${{ matrix.swift }}
25
26
@@ -29,18 +30,22 @@ jobs:
29
30
echo "/opt/homebrew/bin:/usr/local/bin" >> $GITHUB_PATH
30
31
echo BENCHMARK_DISABLE_JEMALLOC=true >> $GITHUB_ENV
31
32
brew install jemalloc
32
- - uses : actions/checkout@v3
33
+
34
+ - uses : actions/checkout@v4
35
+
36
+ - name : GH auth
37
+ run : |
38
+ echo "machine api.github.com login ${{ secrets.GITHUB_TOKEN }} password x-oauth-basic" > $HOME/.netrc
39
+ cat ~/.netrc
40
+
33
41
- name : Swift version
34
42
run : swift --version
43
+
35
44
- name : Build
36
45
run : swift build
46
+
37
47
- name : Run tests
38
- run : |
39
- if [ -d Tests ]; then
40
- swift test --parallel
41
- fi
48
+ run : swift test --parallel
49
+
42
50
- name : Run tests (release)
43
- run : |
44
- if [ -d Tests ]; then
45
- swift test -c release --parallel
46
- fi
51
+ run : swift test -c release --parallel
Original file line number Diff line number Diff line change @@ -10,16 +10,16 @@ jobs:
10
10
runs-on : [ubuntu-latest]
11
11
timeout-minutes : 60
12
12
steps :
13
- - uses : actions/checkout@v3
13
+ - uses : actions/checkout@v4
14
14
- name : Check Swift package dependencies
15
15
id : spm-dep-check
16
- uses : MarcoEidinger/swift-package-dependencies-check@2.3.4
16
+ uses : MarcoEidinger/swift-package-dependencies-check@2.5.0
17
17
with :
18
18
isMutating : true
19
19
failWhenOutdated : false
20
20
- name : Create Pull Request
21
21
if : steps.spm-dep-check.outputs.outdatedDependencies == 'true'
22
- uses : peter-evans/create-pull-request@v3
22
+ uses : peter-evans/create-pull-request@v7
23
23
with :
24
24
commit-message : ' chore: update package dependencies'
25
25
branch : updatePackageDepedencies
Original file line number Diff line number Diff line change 12
12
strategy :
13
13
fail-fast : false
14
14
matrix :
15
- os : [ubuntu-latest ]
15
+ os : [macos-15 ]
16
16
17
17
runs-on : ${{ matrix.os }}
18
18
timeout-minutes : 60
29
29
run : |
30
30
sudo apt-get install -y libjemalloc-dev
31
31
32
- - uses : actions/checkout@v3
32
+ - uses : actions/checkout@v4
33
33
34
34
- name : Swift version
35
35
run : swift --version
40
40
41
41
- name : Run address sanitizer
42
42
run : swift test --sanitize=address
43
-
43
+
44
44
- name : Clean before release build sanitizier
45
45
run : swift package clean
46
-
46
+
47
47
- name : Run address sanitizer on release build
48
48
run : swift test --sanitize=address -c release -Xswiftc -enable-testing
Original file line number Diff line number Diff line change 30
30
sudo apt-get install -y libjemalloc-dev
31
31
echo BENCHMARK_DISABLE_JEMALLOC=true >> $GITHUB_ENV
32
32
33
- - uses : actions/checkout@v3
33
+ - uses : actions/checkout@v4
34
34
35
35
- name : Swift version
36
36
run : swift --version
41
41
42
42
- name : Run thread sanitizer
43
43
run : swift test --sanitize=thread
44
-
44
+
45
45
- name : Clean before release build sanitizier
46
46
run : swift package clean
47
-
47
+
48
48
- name : Run thread sanitizer on release build
49
49
run : swift test --sanitize=thread -c release -Xswiftc -enable-testing
You can’t perform that action at this time.
0 commit comments