Skip to content

Commit 5d351f8

Browse files
authored
Create macOS.yml
1 parent 9fb19c4 commit 5d351f8

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/macOS.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: macOS
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
macos_test:
11+
name: Execute tests on macOS
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [macos-15]
16+
xcode-version: ["16.3"]
17+
release: [2024]
18+
runs-on: ${{ matrix.os }}
19+
env:
20+
GH_TOKEN: ${{ github.token }}
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Setup Xcode
24+
uses: maxim-lobanov/setup-xcode@v1
25+
with:
26+
xcode-version: ${{ matrix.xcode-version }}
27+
- name: Swift version
28+
run: swift --version
29+
- name: Build and run tests in debug mode
30+
run: |
31+
swift test \
32+
-c debug \
33+
--build-path .build-test-debug
34+
- name: Build and run tests in release mode
35+
run: |
36+
swift test \
37+
-c release \
38+
--build-path .build-test-release

0 commit comments

Comments
 (0)