CallbackLambda: allow usage of lambda with no parameters on callbacks… #353
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" | |
env: | |
BUILD_TYPE: Release | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
types: [opened, reopened] | |
schedule: | |
- cron: '25 0 * * 2' | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'cpp' ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Get number of CPU cores | |
uses: SimenB/github-actions-cpu-cores@v2 | |
id: cpu-cores | |
- name: Install gcc | |
run: sudo apt-get update && sudo apt-get install gcc-11 g++-11 | |
- name: Install dependencies | |
run: | | |
sudo apt-get install libx11-dev libxrandr-dev libudev-dev \ | |
libglu1-mesa-dev freeglut3-dev mesa-common-dev libflac-dev libogg-dev \ | |
libvorbis-dev libopenal-dev libxcursor-dev | |
- name: actions-setup-cmake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: '3.28.x' | |
- name: Handling project dependencies | |
shell: bash | |
working-directory: ${{github.workspace}}/deps | |
run: | | |
cmake . -D CMAKE_BUILD_TYPE=$BUILD_TYPE | |
cmake --build . -j ${{steps.cpu-cores.outputs.count}} --config $BUILD_TYPE | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
# If you wish to specify custom queries, you can do so here or in a config file. | |
# By default, queries listed here will override any specified in a config file. | |
# Prefix the list here with "+" to use these queries and those in the config file. | |
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | |
# queries: security-extended,security-and-quality | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{github.workspace}}/build | |
- name: Configure CMake | |
shell: bash | |
working-directory: ${{github.workspace}}/build | |
run: cmake $GITHUB_WORKSPACE -D CMAKE_C_COMPILER=gcc-11 -D CMAKE_CXX_COMPILER=g++-11 -D CMAKE_BUILD_TYPE=$BUILD_TYPE -D FGE_DEPS_PATH="deps/libs" | |
- name: Build | |
working-directory: ${{github.workspace}}/build | |
shell: bash | |
run: cmake --build . -j ${{steps.cpu-cores.outputs.count}} --config $BUILD_TYPE | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |