diff --git a/.circleci/config.yml b/.circleci/config.yml index 01fad4f841..b7fce6058a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,13 +11,21 @@ jobs: - run: name: Install dependencies command: | - WX_EXTRA_PACKAGES=git ./build/tools/before_install.sh + WX_EXTRA_PACKAGES='ccache git' ./build/tools/before_install.sh + + echo "PATH=/usr/lib64/ccache:$PATH" >> $BASH_ENV - run: name: Checkout required submodules command: | git submodule update --init 3rdparty/catch 3rdparty/nanosvg + - restore_cache: + name: Restore ccache + keys: + - ccache-v1-{{ arch }}-{{ .Branch }} + - ccache-v1-{{ arch }} + - run: name: Configure command: ./configure --disable-debug-info @@ -30,6 +38,18 @@ jobs: command: | make -k -j2 CXXFLAGS='-Werror -Wno-error=cpp' + - run: + name: Show ccache statistics + when: always + command: ccache -vv -s + + - save_cache: + name: Save ccache + when: always + key: ccache-v1-{{ arch }}-{{ .Branch }}-{{ .BuildNum }} + paths: + - ~/.cache/ccache + workflows: build: jobs: