Skip to content

Commit

Permalink
Update codeql.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
phbasler authored Jan 9, 2023
1 parent 5fcba05 commit 608be5b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,21 @@ jobs:
sudo apt-get update
sudo apt-get install --no-install-recommends --yes libgsl-dev libeigen3-dev libnlopt-dev libnlopt-cxx-dev libboost-all-dev
if: matrix.language == 'cpp'

- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v1
id: cpu-cores
if: matrix.language == 'cpp'
- name: cmake
run: mkdir build && cd build && cmake ..
if: matrix.language == 'cpp'
- name: make
run: cd build && cmake --build . -j${{ steps.cpu-cores.outputs.count }}
if: matrix.language == 'cpp'

- name: Autobuild
uses: github/codeql-action/autobuild@v2
if: matrix.language != 'cpp'

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
Expand Down

0 comments on commit 608be5b

Please sign in to comment.