File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments