Skip to content

Commit 5d51572

Browse files
authored
Update CI (#10)
* Delete .gitlab-ci.yml * Update ci-macos.yml * Update ci-linux.yml * Update ci-windows.yml * Update ci-windows.yml * Update ci-macos.yml * Update ci-macos.yml * Rename ci-macos.yml to ci-macos-11.yml * Create ci-macos.yml * Update ci-macos-11.yml
1 parent 65aa6b5 commit 5d51572

File tree

5 files changed

+63
-43
lines changed

5 files changed

+63
-43
lines changed

.github/workflows/ci-linux.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
image: swift:${{ matrix.swift }}
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@master
20+
uses: actions/checkout@v2.5.0
2121
- name: Test
22-
run: make test
22+
run: swift test -c release --skip-update --parallel --enable-code-coverage
2323
- name: Build Release
24-
run: make buildRelease
24+
run: swift build -c release

.github/workflows/ci-macos-11.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: macOS
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
macos-test-build-release-xcode:
12+
runs-on: macos-11
13+
strategy:
14+
matrix:
15+
xcode: [11.7, 12.5.1]
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2.5.0
19+
- name: Select Xcode ${{ matrix.xcode }}
20+
run: sudo xcode-select -s '/Applications/Xcode_${{ matrix.xcode }}.app'
21+
- name: Test
22+
run: make test
23+
env:
24+
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
25+
- name: Upload test artifacts
26+
if: failure()
27+
uses: actions/upload-artifact@v3.1.1
28+
with:
29+
name: test-artifacts-${{ matrix.xcode }}-${{ github.run_id }}
30+
path: |
31+
.build/**/*.json
32+
.build/**/*.xctest
33+
- name: Build Release
34+
run: make buildRelease
35+
env:
36+
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
37+
- name: Upload build artifacts
38+
if: failure()
39+
uses: actions/upload-artifact@v3.1.1
40+
with:
41+
name: build-artifacts-${{ matrix.xcode }}-${{ github.run_id }}
42+
path: |
43+
*.lcov
44+
.build/*.yaml
45+
.build/**/*.a
46+
.build/**/*.so
47+
.build/**/*.dylib
48+
.build/**/*.dSYM
49+
.build/**/*.json

.github/workflows/ci-macos.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ on:
99

1010
jobs:
1111
macos-test-build-release-xcode:
12-
runs-on: macOS-11
12+
runs-on: macos-latest
1313
strategy:
1414
matrix:
15-
xcode: ["11.7", "12.5.1", "13.0"]
15+
xcode: [13.4.1, 14.1]
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@master
18+
uses: actions/checkout@v2.5.0
1919
- name: Select Xcode ${{ matrix.xcode }}
20-
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
20+
run: sudo xcode-select -s '/Applications/Xcode_${{ matrix.xcode }}.app'
2121
- name: Test
2222
run: make test
2323
env:
2424
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
2525
- name: Upload test artifacts
2626
if: failure()
27-
uses: actions/upload-artifact@v2.2.3
27+
uses: actions/upload-artifact@v3.1.1
2828
with:
2929
name: test-artifacts-${{ matrix.xcode }}-${{ github.run_id }}
3030
path: |
@@ -36,7 +36,7 @@ jobs:
3636
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
3737
- name: Upload build artifacts
3838
if: failure()
39-
uses: actions/upload-artifact@v2.2.3
39+
uses: actions/upload-artifact@v3.1.1
4040
with:
4141
name: build-artifacts-${{ matrix.xcode }}-${{ github.run_id }}
4242
path: |

.github/workflows/ci-windows.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ jobs:
1313
strategy:
1414
matrix:
1515
include:
16-
- tag: 5.5-RELEASE
17-
branch: swift-5.5-release
16+
- tag: 5.7-RELEASE
17+
branch: swift-5.7-release
1818
steps:
19-
- uses: actions/checkout@master
19+
- uses: actions/checkout@v2.5.0
2020
with:
2121
fetch-depth: 1
2222

23-
- uses: seanmiddleditch/gha-setup-vsdevenv@master
23+
- uses: seanmiddleditch/gha-setup-vsdevenv@v4
2424

2525
- name: Install Swift ${{ matrix.tag }}
2626
run: |
@@ -41,7 +41,7 @@ jobs:
4141
Copy-Item "$env:SDKROOT\usr\share\winsdk.modulemap" -destination "$env:UniversalCRTSdkDir\Include\$env:UCRTVersion\um\module.modulemap"
4242
4343
- name: Test
44-
run: swift test -v --skip-update --parallel --enable-test-discovery
44+
run: swift test
4545

4646
- name: Build Release
4747
run: swift build -c release

.gitlab-ci.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)