Update codeql.yml

This commit is contained in:
nauta
2023-09-27 15:38:07 +08:00
committed by GitHub
parent 20c560da13
commit 455d781178

View File

@ -1,10 +1,8 @@
name: CodeQL name: CodeQL
on: on:
push: schedule:
branches: [ master ] - cron: "0 0 * * 1" # every Monday
pull_request:
branches: [ master ]
jobs: jobs:
codeql: codeql:
@ -42,16 +40,11 @@ jobs:
with: with:
languages: cpp languages: cpp
- name: Build init
run: |
bash build.sh init
- name: Build project - name: Build project
shell: bash shell: bash
run: | run: |
rm -rf build_debug rm -rf build_debug
bash build.sh debug bash build.sh debug --init --make -j3
cd build_debug && make -j4 && cd -
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2 uses: github/codeql-action/analyze@v2