CodeQL #38
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" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: [ "main" ] | |
schedule: | |
- cron: '18 15 * * 3' | |
defaults: | |
run: | |
shell: bash -el {0} | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-22.04 | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt update -q | |
sudo apt -yq install liblapacke-dev libhdf5-dev libmatio-dev libopenblas-dev | |
gcc --version | |
- name: Install NumPy | |
run: | | |
pip install --upgrade --user --pre "numpy>=2.0.0b1,<3" setuptools setuptools_scm | |
- name: Configure | |
run: | | |
export DISABLE_CCACHE=1 | |
source ./build_tools/cmake_configure.sh -DENABLE_WERROR=ON # --trace-expand | |
- uses: github/codeql-action/init@v3 | |
with: | |
languages: cpp, python | |
- name: Build | |
run: | | |
cmake --build build --config Release | |
- uses: github/codeql-action/analyze@v3 |