ci: use generic destination for CodeQL

This commit is contained in:
Qiu Yuzhou
2026-11-14 10:19:57 +08:00
parent 56fc770ab7
commit 728e6b1963
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -40,7 +40,10 @@ jobs:
- name: Build
working-directory: ShadowsocksX-NG2
run: task build DERIVED_DATA_DIR="$(mktemp -d "${RUNNER_TEMP}/codeql-derived-data.XXXXXX")"
run: >-
task build
BUILD_DESTINATION=generic/platform=macOS
DERIVED_DATA_DIR="$(mktemp -d "${RUNNER_TEMP}/codeql-derived-data.XXXXXX")"
- name: Analyze
uses: github/codeql-action/analyze@5895b2c9be147bc7f1c75ce72c5cb577febb1907 # v4
+3 -1
View File
@@ -121,6 +121,8 @@ tasks:
build:
desc: Build the ShadowsocksX-NG2 macOS application with Debug Config
vars:
BUILD_DESTINATION: '{{default "platform=macOS,arch=arm64" .BUILD_DESTINATION}}'
deps:
- gen:prj
cmds:
@@ -129,7 +131,7 @@ tasks:
-project ShadowsocksX-NG2.xcodeproj
-scheme ShadowsocksX-NG2
-configuration Debug
-destination 'platform=macOS,arch=arm64'
-destination {{.BUILD_DESTINATION | shellQuote}}
-derivedDataPath {{.DERIVED_DATA_DIR | shellQuote}}
{{if .RESULT_BUNDLE_PATH}}-resultBundlePath {{.RESULT_BUNDLE_PATH | shellQuote}}{{end}}
SWIFT_SUPPRESS_WARNINGS=NO SWIFT_TREAT_WARNINGS_AS_ERRORS=YES GCC_TREAT_WARNINGS_AS_ERRORS=YES