Merge remote-tracking branch 'upstream/develop' into staged-ci #30
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", "develop", "release-*" ] | |
workflow_call: | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
timeout-minutes: 360 | |
permissions: | |
# required for all workflows | |
security-events: write | |
# only required for workflows in private repositories | |
actions: read | |
contents: read | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
# Initializes the CodeQL tools for scanning. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11 | |
with: | |
languages: c-cpp | |
- name: configure | |
run: | |
cmake -B build . | |
-DKokkos_ENABLE_OPENMP=ON | |
-DCMAKE_CXX_STANDARD=17 | |
-DKokkos_ENABLE_DEPRECATED_CODE_4=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@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11 | |
with: | |
category: "/language:c-cpp" |