Update action.yaml

This commit is contained in:
Sebastian Meßmer 2021-04-11 19:45:22 -07:00 committed by GitHub
parent 7eb47cbaf0
commit f44d35681f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -16,6 +16,7 @@ runs:
- name: Show build system information
shell: bash
run: |
set -v
echo CMake version:
cmake --version
echo Ninja version:
@ -29,14 +30,18 @@ runs:
- name: Run cmake
shell: bash
run: |
set -v
mkdir build
cd build
cmake .. -GNinja -DCMAKE_CXX_COMPILER=${{inputs.cxx}} -DCMAKE_C_COMPILER=${{inputs.cc}} -DBUILD_TESTING=on -DCMAKE_BUILD_TYPE=${{inputs.build_type}} -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache
- name: Run ninja
shell: bash
run: |
set -v
cd build
ninja
- name: Reduce cache size
shell: bash
run: ccache --evict-older-than 7d
run: |
set -v
ccache --evict-older-than 7d