mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
79 lines
2.0 KiB
YAML
79 lines
2.0 KiB
YAML
name: "CodeQL Advanced"
|
|
|
|
on:
|
|
pull_request:
|
|
branches: ["dev"]
|
|
schedule:
|
|
- cron: "45 11 * * *"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
security-events: write
|
|
packages: read
|
|
actions: read
|
|
contents: read
|
|
|
|
jobs:
|
|
analyze-none:
|
|
name: Analyze CI and MaaWebsite
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
show-progress: false
|
|
|
|
- name: Setup CodeQL
|
|
uses: github/codeql-action/init@v3
|
|
with:
|
|
languages: javascript-typescript,actions
|
|
build-mode: none
|
|
|
|
- name: Run CodeQL
|
|
uses: github/codeql-action/analyze@v3
|
|
with:
|
|
category: "/language:multi-none"
|
|
|
|
analyze-manual:
|
|
name: Analyze MaaCore and MaaWpfGui
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
show-progress: false
|
|
|
|
- name: Setup build environments
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
git submodule update --init --depth 1 3rdparty/EmulatorExtras
|
|
dotnet restore
|
|
python3 maadeps-download.py x64-windows
|
|
|
|
- name: Create fake event file
|
|
shell: bash
|
|
run: cp -v "$GITHUB_EVENT_PATH" ./event.json
|
|
|
|
- name: Setup CodeQL
|
|
uses: github/codeql-action/init@v3
|
|
with:
|
|
languages: c-cpp,csharp
|
|
build-mode: manual
|
|
|
|
- name: Build MAA
|
|
shell: pwsh
|
|
run: |
|
|
$env:GITHUB_WORKFLOW = 'dev-build-win'
|
|
$env:GITHUB_EVENT_PATH = "$pwd\\event.json"
|
|
$env:GITHUB_REF = "refs/heads/not_master"
|
|
$env:MAA_BUILDER_MAA_VERSION = 'v0.0.1'
|
|
./build.cmd DevBuild
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Run CodeQL
|
|
uses: github/codeql-action/analyze@v3
|
|
with:
|
|
category: "/language:multi-manual"
|