Skip to content

Commit 8f337a8

Browse files
authored
Initial CI setup
1 parent cf8cb0b commit 8f337a8

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/swift.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will build a Swift project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift
3+
4+
name: Swift
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
build:
14+
name: Build and Test on ${{ matrix.swift }}
15+
runs-on: macos-latest
16+
17+
strategy:
18+
matrix:
19+
swift: [5.10, 6.0]
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Select Xcode version for Swift ${{ matrix.swift }}
25+
run: |
26+
case "${{ matrix.swift }}" in
27+
5.10) sudo xcode-select -s /Applications/Xcode_15.3.app ;;
28+
6.0) sudo xcode-select -s /Applications/Xcode_16.0.app ;;
29+
esac
30+
xcodebuild -version
31+
32+
- name: Build
33+
run: swift build -v
34+
35+
- name: Run tests
36+
run: swift test -v

0 commit comments

Comments
 (0)