CodeQL #84
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
name: "CodeQL" | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
schedule: | |
- cron: '15 18 * * 6' | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: windows-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'cpp' ] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
# third-party | |
- name: Configure vendor | |
run: cmake -S ${{github.workspace}}\Engine\vendor -B ${{github.workspace}}\build_vendor -A x64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DFT_DISABLE_ZLIB=ON -DFT_DISABLE_BZIP2=ON -DFT_DISABLE_PNG=ON -DFT_DISABLE_HARFBUZZ=ON -DFT_DISABLE_BROTLI=ON | |
- name: Build vendor | |
run: | | |
cmake --build ${{github.workspace}}\build_vendor --config Debug | |
cmake --build ${{github.workspace}}\build_vendor --config Release | |
# CodeQL init | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
# build engine and projects | |
- name: Configure engine and projects | |
run: cmake -B ${{github.workspace}}/build | |
- name: Build engine and projects | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
# CodeQL analyze | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v2 | |
with: | |
category: "/language:${{matrix.language}}" |