diff --git a/.github/workflows/test-library.yml b/.github/workflows/test-library.yml index cb3d14572..f1b206bd5 100644 --- a/.github/workflows/test-library.yml +++ b/.github/workflows/test-library.yml @@ -160,7 +160,7 @@ jobs: static-analyser: - name: Clang Static Analyser + name: Clang 14 Static Analyser runs-on: ubuntu-latest needs: basicchecks @@ -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 @@ -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