changelog: 0.9.6 #582
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# CodeQl Workflow | |
# | |
# https://github.com/cpp-best-practices/gui_starter_template | |
name: CodeQL | |
on: | |
push: | |
branches: [ release, next ] | |
pull_request: | |
branches: [ release, next ] | |
# At 3:00am on Friday. Every week, every month. | |
schedule: | |
- cron: '00 3 * * 5' | |
jobs: | |
analyze: | |
strategy: | |
fail-fast: false | |
matrix: | |
cxx_compiler: | |
- clang++ | |
build_type: | |
- Debug | |
install_location: | |
- .local | |
name: Analyze | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip ci codeql]')" | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Cache | |
uses: actions/cache@v3 | |
id: cache | |
with: | |
path: | | |
${{github.workspace}}/${{matrix.install_location}} | |
${{github.workspace}}/build/out | |
key: ${{runner.os}}-codeql-dependencies | |
- name: Setup CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: 'cpp' | |
- name: Build | |
run: | | |
export CXX="$(which "${{matrix.cxx_compiler}}")" | |
cmake -S . -B build/out/this/codeql -DCMAKE_BUILD_TYPE="${{matrix.build_type}}" | |
cmake --build build/out/this/codeql --config "${{matrix.build_type}}" | |
- name: Analyze | |
uses: github/codeql-action/analyze@v2 | |