diff options
| author | Angus Gratton <angus@redyak.com.au> | 2024-12-11 14:59:39 +1100 |
|---|---|---|
| committer | Angus Gratton <gus@projectgus.com> | 2024-12-18 15:11:01 +1100 |
| commit | a9945fc528c950659793b6fb4979586297ea1497 (patch) | |
| tree | 66247df05f0f9c2a6441fc4160b463c5e9b9001d /tools/ci.sh | |
| parent | db4b095644e646f0a700076e4d2c51512eed4d30 (diff) | |
ci: Add caching of ccache for Zephyr.
Similar to the ESP32 builds, but needs additional step to pass the
ccache directory through to the Zephyr container.
This work was funded through GitHub Sponsors.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'tools/ci.sh')
| -rwxr-xr-x | tools/ci.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/ci.sh b/tools/ci.sh index d4bfe4933..c67aeed0c 100755 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -754,12 +754,15 @@ function ci_zephyr_setup { # Directories cached by GitHub Actions, mounted # into the container ZEPHYRPROJECT_DIR="$(pwd)/zephyrproject" + CCACHE_DIR="$(pwd)/.ccache" mkdir -p "${ZEPHYRPROJECT_DIR}" + mkdir -p "${CCACHE_DIR}" docker run --name zephyr-ci -d -it \ -v "$(pwd)":/micropython \ -v "${ZEPHYRPROJECT_DIR}":/zephyrproject \ + -v "${CCACHE_DIR}":/root/.cache/ccache \ -e ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-${ZEPHYR_SDK_VERSION} \ -e ZEPHYR_TOOLCHAIN_VARIANT=zephyr \ -e ZEPHYR_BASE=/zephyrproject/zephyr \ |
