Skip to content

Commit

Permalink
Print ccache stats
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomofiorin committed Sep 11, 2023
1 parent 4f48f6c commit a6fd366
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/test-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit a6fd366

Please sign in to comment.