Skip to content

Commit

Permalink
Merge pull request #101 from phbasler/testcodeql
Browse files Browse the repository at this point in the history
Fix codeql build
  • Loading branch information
phbasler authored Jan 9, 2023
2 parents 33428ee + 9241e98 commit 955f979
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
paths-ignore:
- build
- '.cmake-format.py'
19 changes: 19 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,28 @@ jobs:
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
config-file: ./.github/codeql/codeql-config.yml

- name : installPackages
run : |
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

1 comment on commit 955f979

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'C++ Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.50.

Benchmark suite Current: 955f979 Previous: 33428ee Ratio
BM_EWPT/repeats:5_stddev 818390651.1374953 ns/iter 523004970.250449 ns/iter 1.56
BM_EWPT/repeats:5_cv 0.15800284523018235 ns/iter 0.10335473998665695 ns/iter 1.53

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.