Heuristic route generation #1676
Workflow file for this run
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: | |
pull_request: | |
merge_group: | |
schedule: | |
- cron: "15 21 * * 6" | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
env: | |
CMAKE_BUILD_PARALLEL_LEVEL: 3 | |
jobs: | |
analyze: | |
name: Analyze ${{ matrix.language }} | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ["cpp"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Read current gurobi Version | |
uses: zlatko-ms/varfiletoenv@v3 | |
with: | |
paths: ./.github/gurobi_version.json | |
- name: download-gurobi-linux | |
env: | |
GUROBI_VERSION_SHORT: ${{ env.gurobiShortVersion }} | |
GUROBI_VERSION: ${{ env.gurobiVersion }} | |
GUROBI_VERSION_FOLDER: ${{ env.gurobiFolder }} | |
GUROBI_FILE: gurobi${{ env.gurobiVersion }}_linux64.tar.gz | |
run: | | |
wget https://packages.gurobi.com/${{ env.GUROBI_VERSION_SHORT }}/${{ env.GUROBI_FILE }} | |
tar -xvzf ${{ env.GUROBI_FILE }} | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
config-file: .github/codeql-config.yml | |
- if: matrix.language == 'cpp' | |
name: Configure CMake | |
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTS=ON | |
- if: matrix.language == 'cpp' | |
name: Build | |
run: cmake --build build | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 | |
with: | |
upload: False | |
output: sarif-results | |
- name: filter-sarif | |
uses: advanced-security/filter-sarif@main | |
with: | |
patterns: | | |
-**/extern/** | |
input: sarif-results/${{ matrix.language }}.sarif | |
output: sarif-results/${{ matrix.language }}.sarif | |
- name: Upload SARIF | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: sarif-results/${{ matrix.language }}.sarif |