diff --git a/.github/workflows/test-library.yml b/.github/workflows/test-library.yml index fd3c1dc49..cb3d14572 100644 --- a/.github/workflows/test-library.yml +++ b/.github/workflows/test-library.yml @@ -180,12 +180,11 @@ jobs: - name: Perform Clang Static Analyser env: - CCACHE: ccache CXX: clang++ CC: clang 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 \ - awk '/warning/,/warning.*generated|^$/' build_analyser.log | awk '!/openmm.*warning/,/warning.*generated|^$/' | tee warnings_analyser.log \ + scan-build-11 --use-cc=clang --use-c++=clang++ 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 - name: Archive warnings artifacts