Skip to content

Commit ec4055a

Browse files
committed
Fix git issues, macOS
1 parent e8ad465 commit ec4055a

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,34 @@ on:
99

1010
jobs:
1111
macOS:
12-
runs-on: macos-latest
12+
# https://github.com/actions/runner-images
13+
runs-on: macos-13
1314
strategy:
1415
matrix:
15-
xcode: ['14.3.1', '14.0']
16+
xcode: ['15.0', '14.3.1']
1617
steps:
1718
- uses: actions/checkout@v3
18-
- name: Select Xcode ${{ matrix.xcode }}
19-
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
19+
- run: git config --global user.email "[email protected]"
20+
- run: git config --global user.name "Name"
21+
- name: Get swift version
22+
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift --version
23+
- name: Test
24+
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift test
25+
- name: Build release
26+
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift build -c release
27+
28+
Linux:
29+
# https://github.com/actions/runner-images
30+
runs-on: ubuntu-latest
31+
container:
32+
image: swiftlang/swift@sha256:f212429011a4c3592ffaa660fd78b5bc149e9df7920da02dfc0e7a761582fa10 # swiftlang/swift:nightly-5.9-focal 2023-08-16
33+
steps:
34+
- uses: actions/checkout@v3
35+
- run: git config --global user.email "[email protected]"
36+
- run: git config --global user.name "Name"
2037
- name: Get swift version
2138
run: swift --version
2239
- name: Test
2340
run: swift test
2441
- name: Build release
2542
run: swift build -c release
26-
27-
Linux:
28-
runs-on: ubuntu-latest
29-
container:
30-
image: swiftlang/swift@sha256:f212429011a4c3592ffaa660fd78b5bc149e9df7920da02dfc0e7a761582fa10 # swiftlang/swift:nightly-5.9-focal 2023-08-16
31-
steps:
32-
- uses: actions/checkout@v3
33-
- name: Get swift version
34-
run: swift --version
35-
- name: Test
36-
run: swift test
37-
- name: Build release
38-
run: swift build -c release

0 commit comments

Comments
 (0)