35
35
schedule :
36
36
- cron : ' 0 0 * * 6' # Runs at 8 AM Singapore time (00:00 UTC) every Saturday
37
37
38
- env :
39
- SCHEME : " XLKit-CI"
40
-
41
38
jobs :
42
39
analyze :
43
40
name : Analyze (${{ matrix.language }})
46
43
# - https://gh.io/supported-runners-and-hardware-resources
47
44
# - https://gh.io/using-larger-runners (GitHub.com only)
48
45
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
49
- runs-on : ${{ (matrix.language == 'swift' && 'macos-latest ') || 'ubuntu-latest' }}
46
+ runs-on : ${{ (matrix.language == 'swift' && 'macos-15 ') || 'ubuntu-latest' }}
50
47
permissions :
51
48
# required for all workflows
52
49
security-events : write
85
82
if : matrix.language == 'swift'
86
83
uses : maxim-lobanov/setup-xcode@v1
87
84
with :
88
- xcode-version : latest-stable
89
-
90
- - name : Boostrap Platforms
91
- if : matrix.language == 'swift'
92
- # Workaround for Xcode/GitHub runner issues finding simulators.
93
- # see https://github.com/actions/runner-images/issues/12758#issuecomment-3206748945
94
- run : xcrun simctl list
95
-
96
- - name : Download Platforms
97
- if : matrix.language == 'swift'
98
- # Workaround for Xcode/GitHub runner issues finding simulators.
99
- # see https://github.com/actions/runner-images/issues/12758#issuecomment-3206748945
100
- run : xcodebuild -downloadPlatform iOS
85
+ xcode-version : ' 16.4'
101
86
102
87
# Initializes the CodeQL tools for scanning.
103
88
- name : Initialize CodeQL
@@ -121,10 +106,10 @@ jobs:
121
106
- if : matrix.build-mode == 'manual' && matrix.language == 'swift'
122
107
shell : bash
123
108
run : |
124
- # Try the same approach as your working build.yml but without xcbeautify
125
- xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "XLKit-CI" -destination "generic/platform=macOS,name=Any Mac"
109
+ swift package resolve
110
+ swift build
126
111
127
112
- name : Perform CodeQL Analysis
128
113
uses : github/codeql-action/analyze@v3
129
114
with :
130
- category : " /language:${{matrix.language}}"
115
+ category : " /language:${{matrix.language}}"
0 commit comments