name: "CodeQL" on: workflow_call: permissions: contents: read jobs: analyze: name: Analyze runs-on: ubuntu-latest timeout-minutes: 360 permissions: # required for all workflows security-events: write steps: - name: Checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3 with: languages: c-cpp - name: configure run: cmake -B build . -DKokkos_ENABLE_OPENMP=ON -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_FLAGS=-Werror -DKokkos_ENABLE_COMPILER_WARNINGS=ON -DKokkos_ENABLE_DEPRECATED_CODE_5=OFF -DKokkos_ENABLE_TESTS=ON -DKokkos_ENABLE_EXAMPLES=ON -DKokkos_ENABLE_BENCHMARKS=ON -DCMAKE_BUILD_TYPE=Debug - name: build run: cmake --build build --parallel 2 - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3 with: category: "/language:c-cpp"