Skip to content

Commit

Permalink
Specify Clang version 14
Browse files Browse the repository at this point in the history
  • Loading branch information
HubLot committed Sep 12, 2023
1 parent 1b66f3e commit c0accfc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:


static-analyser:
name: Clang Static Analyser
name: Clang 14 Static Analyser
runs-on: ubuntu-latest
needs: basicchecks

Expand All @@ -169,7 +169,7 @@ jobs:

- name: Install build dependencies for library
run: |
sudo apt -y install tcl8.6-dev clang
sudo apt -y install tcl8.6-dev clang-14 clang-tools-14
- name: Checkout OpenMM (for Lepton library)
uses: actions/checkout@v3
Expand All @@ -180,10 +180,10 @@ jobs:

- name: Perform Clang Static Analyser
env:
CXX: clang++
CC: clang
CXX: clang++-14
CC: clang-14
run: | # Retrieve warnings generated but not the ones of OpenMM
scan-build-11 --use-cc=clang --use-c++=clang++ cmake -P devel-tools/build_test_library.cmake 2>&1 | tee build_analyser.log; \
scan-build-14 --use-cc=clang-14 --use-c++=clang++-14 cmake -P devel-tools/build_test_library.cmake 2>&1 | tee build_analyser.log; \
awk '/warning/,/warning.*generated|^$/' build_analyser.log | awk '!/openmm.*warning/,/warning.*generated|^$/' | tee warnings_analyser.log; \
if [ -s warnings_analyser.log ] ; then echo "Found compiler warning during build"; cat warnings_analyser.log; exit 1; fi
Expand Down

0 comments on commit c0accfc

Please sign in to comment.