mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-11-16 14:24:42 +00:00
ci: allow deprecation warnings in CodeQL
This commit is contained in:
@@ -43,6 +43,7 @@ jobs:
|
||||
run: >-
|
||||
task build
|
||||
BUILD_DESTINATION=generic/platform=macOS
|
||||
BUILD_ALLOW_DEPRECATED=1
|
||||
DERIVED_DATA_DIR="$(mktemp -d "${RUNNER_TEMP}/codeql-derived-data.XXXXXX")"
|
||||
|
||||
- name: Analyze
|
||||
|
||||
@@ -134,7 +134,8 @@ tasks:
|
||||
-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
|
||||
SWIFT_SUPPRESS_WARNINGS=NO SWIFT_TREAT_WARNINGS_AS_ERRORS={{if .BUILD_ALLOW_DEPRECATED}}NO{{else}}YES{{end}} GCC_TREAT_WARNINGS_AS_ERRORS=YES
|
||||
{{if .BUILD_ALLOW_DEPRECATED}}OTHER_SWIFT_FLAGS='-warnings-as-errors -Wwarning DeprecatedDeclaration'{{end}}
|
||||
build
|
||||
|
||||
build:release:
|
||||
|
||||
Reference in New Issue
Block a user