Skip to content

Commit a6a4e13

Browse files
committed
Fix Swift CodeQL build command
1 parent f4f51b9 commit a6a4e13

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,21 @@ jobs:
5555
- if: matrix.build-mode == 'manual'
5656
uses: ./.github/actions/set-xcode-version
5757

58-
- if: matrix.build-mode == 'manual'
58+
- name: Build Swift project for CodeQL extraction
59+
if: matrix.build-mode == 'manual'
5960
shell: bash
6061
run: |
62+
set -euo pipefail
6163
xcodebuild \
64+
-workspace 'Copilot for Xcode.xcworkspace' \
6265
-scheme 'Copilot for Xcode' \
63-
-quiet \
64-
-archivePath build/Archives/CopilotForXcode.xcarchive \
6566
-configuration Release \
67+
-destination 'generic/platform=macOS' \
68+
-derivedDataPath build/DerivedData \
6669
-skipMacroValidation \
6770
-disableAutomaticPackageResolution \
68-
-workspace 'Copilot for Xcode.xcworkspace' \
69-
archive \
70-
CODE_SIGNING_ALLOWED="NO"
71+
CODE_SIGNING_ALLOWED=NO \
72+
build
7173
7274
- name: Perform CodeQL Analysis
7375
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)