mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-11-16 14:44:41 +00:00
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
name: CodeQL
|
|
|
|
on:
|
|
push:
|
|
branches: [develop, master]
|
|
pull_request:
|
|
branches: [develop, master]
|
|
schedule:
|
|
- cron: '30 2 * * 1'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze Swift
|
|
# CodeQL build tracing does not support macOS 27 or Xcode 27.
|
|
runs-on: macos-26
|
|
env:
|
|
DEVELOPER_DIR: /Applications/Xcode_26.4.1.app/Contents/Developer
|
|
timeout-minutes: 60
|
|
steps:
|
|
- name: Check out source
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Set up dependencies
|
|
uses: ./.github/actions/setup-ng2
|
|
with:
|
|
packages: age go-task xcodegen
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@5895b2c9be147bc7f1c75ce72c5cb577febb1907 # v4
|
|
with:
|
|
languages: swift
|
|
build-mode: manual
|
|
|
|
- name: Build
|
|
working-directory: ShadowsocksX-NG2
|
|
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
|
|
uses: github/codeql-action/analyze@5895b2c9be147bc7f1c75ce72c5cb577febb1907 # v4
|
|
with:
|
|
category: /language:swift
|