diff --git a/.github/workflows/test-library.yml b/.github/workflows/test-library.yml index 465f82e42..ac9aa6bad 100644 --- a/.github/workflows/test-library.yml +++ b/.github/workflows/test-library.yml @@ -12,6 +12,9 @@ jobs: if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository outputs: hassecrets: ${{ steps.checksecrets.outputs.hassecrets }} + env: + CCACHE: ccache + CCACHE_DIR: ~/.ccache steps: - name: Checkout Colvars @@ -49,9 +52,6 @@ jobs: fi - name: Build and test library (GCC) - env: - CCACHE: ccache - CCACHE_DIR: ~/.ccache run: cmake -P devel-tools/build_test_library.cmake - name: Check documentation of command-line scripting interface @@ -67,18 +67,16 @@ jobs: - name: Build and test library (Clang) env: CMAKE_BUILD_DIR: build-clang - CCACHE: ccache - CCACHE_DIR: ~/.ccache CXX: clang++ CC: clang run: cmake -P devel-tools/build_test_library.cmake - name: Build library with debug flags enabled - env: - CCACHE: ccache - CCACHE_DIR: ~/.ccache run: cmake -D COLVARS_DEBUG=ON -P devel-tools/build_test_library.cmake + - name: Print ccache statistics + run: ${CCACHE} -s + - name: Check whether secrets are available id: checksecrets env: