Skip to content

Commit a6e11d3

Browse files
Update Swift build mode to manual in CodeQL workflow
Changed build mode for Swift from 'autobuild' to 'manual' and updated the build command for manual mode. Signed-off-by: Karan Mohindroo <96403086+NullPointerDepressiveDisorder@users.noreply.github.com>
1 parent 2f719d7 commit a6e11d3

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
- language: actions
5151
build-mode: none
5252
- language: swift
53-
build-mode: autobuild
53+
build-mode: manual
5454
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
5555
# Use `c-cpp` to analyze code written in C, C++ or both
5656
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
@@ -92,12 +92,14 @@ jobs:
9292
if: matrix.build-mode == 'manual'
9393
shell: bash
9494
run: |
95-
echo 'If you are using a "manual" build mode for one or more of the' \
96-
'languages you are analyzing, replace this with the commands to build' \
97-
'your code, for example:'
98-
echo ' make bootstrap'
99-
echo ' make release'
100-
exit 1
95+
xcodebuild -scheme MiddleDrag \
96+
-project MiddleDrag.xcodeproj \
97+
-configuration Debug \
98+
-destination "platform=macOS" \
99+
CODE_SIGN_IDENTITY="" \
100+
CODE_SIGNING_REQUIRED=NO \
101+
CODE_SIGNING_ALLOWED=NO \
102+
build
101103
102104
- name: Perform CodeQL Analysis
103105
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)