Skip to content

Commit 64059c6

Browse files
Update codeql.yml
1 parent f29febb commit 64059c6

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

.github/workflows/codeql.yml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ on:
3535
schedule:
3636
- cron: '0 0 * * 6' # Runs at 8 AM Singapore time (00:00 UTC) every Saturday
3737

38-
env:
39-
SCHEME: "XLKit-CI"
40-
4138
jobs:
4239
analyze:
4340
name: Analyze (${{ matrix.language }})
@@ -46,7 +43,7 @@ jobs:
4643
# - https://gh.io/supported-runners-and-hardware-resources
4744
# - https://gh.io/using-larger-runners (GitHub.com only)
4845
# 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' }}
5047
permissions:
5148
# required for all workflows
5249
security-events: write
@@ -85,19 +82,7 @@ jobs:
8582
if: matrix.language == 'swift'
8683
uses: maxim-lobanov/setup-xcode@v1
8784
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'
10186

10287
# Initializes the CodeQL tools for scanning.
10388
- name: Initialize CodeQL
@@ -121,10 +106,10 @@ jobs:
121106
- if: matrix.build-mode == 'manual' && matrix.language == 'swift'
122107
shell: bash
123108
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
126111
127112
- name: Perform CodeQL Analysis
128113
uses: github/codeql-action/analyze@v3
129114
with:
130-
category: "/language:${{matrix.language}}"
115+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)