summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2021-03-26 22:09:43 +0100
committerCristian Adam <cristian.adam@qt.io>2021-03-30 17:32:02 +0000
commit8d54fb22bccc5c0750882788451d3f8df63915d3 (patch)
tree931e051125a3da09117e6c170e0b96a6b66642f7 /.github
parent105d65b19c80795aada03b2b1b5a82a409a5333e (diff)
downloadqt-creator-8d54fb22bccc5c0750882788451d3f8df63915d3.tar.gz
GitHub Actions: Update ccache to version 4.2.1
Also display the ccache statistics as separate step and not at the end of the build step. ccache clear Change-Id: Ia8b2ae4b73f2070ab6cf14ab704e5fc4200d49de Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_cmake.yml15
1 files changed, 14 insertions, 1 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml
index d98d5dd35d..a65437bdd4 100644
--- a/.github/workflows/build_cmake.yml
+++ b/.github/workflows/build_cmake.yml
@@ -9,7 +9,7 @@ env:
CMAKE_VERSION: 3.18.3
NINJA_VERSION: 1.10.1
BUILD_TYPE: Release
- CCACHE_VERSION: 3.7.7
+ CCACHE_VERSION: 4.2.1
QT_MIRRORS: download.qt.io;mirrors.ocf.berkeley.edu/qt;ftp.fau.de/qtproject;mirror.bit.edu.cn/qtproject
jobs:
@@ -485,6 +485,19 @@ jobs:
message(FATAL_ERROR "Build failed")
endif()
+ - name: ccache statistics
+ shell: cmake -P {0}
+ run: |
+ file(TO_CMAKE_PATH "$ENV{GITHUB_WORKSPACE}" ccache_basedir)
+ set(ENV{CCACHE_BASEDIR} "${ccache_basedir}")
+ set(ENV{CCACHE_DIR} "${ccache_basedir}/.ccache")
+ set(ENV{CCACHE_SLOPPINESS} "pch_defines,time_macros")
+ set(ENV{CCACHE_COMPRESS} "true")
+ set(ENV{CCACHE_COMPRESSLEVEL} "6")
+ set(ENV{CCACHE_MAXSIZE} "800M")
+ if ("${{ matrix.config.cxx }}" STREQUAL "cl")
+ set(ENV{CCACHE_MAXSIZE} "1200M")
+ endif()
execute_process(COMMAND ccache -s)
- name: Run tests