diff options
author | Peter Johanson <[email protected]> | 2024-02-14 19:47:54 +0000 |
---|---|---|
committer | Pete Johanson <[email protected]> | 2024-02-14 14:08:22 -0800 |
commit | c7fb418e88bc3d5e82f04976c06a1aeeb9b5c736 (patch) | |
tree | c98c5fe50216b271c97433feaff044364e4a624d | |
parent | 40adb3858df5509bd6c67b0477e8832fe769a507 (diff) | |
download | zmk-c7fb418e88bc3d5e82f04976c06a1aeeb9b5c736.tar.gz zmk-c7fb418e88bc3d5e82f04976c06a1aeeb9b5c736.zip |
fix(build): Used a fixed temp dir for caching.
* Improve GHA caching by using a fixed temporary directory
when using one.
-rw-r--r-- | .github/workflows/build-user-config.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/build-user-config.yml b/.github/workflows/build-user-config.yml index af57520bcd..d8ea057e56 100644 --- a/.github/workflows/build-user-config.yml +++ b/.github/workflows/build-user-config.yml @@ -68,7 +68,8 @@ jobs: run: | if [ -e zephyr/module.yml ]; then export zmk_load_arg=" -DZMK_EXTRA_MODULES='${GITHUB_WORKSPACE}'" - export new_tmp_dir=$(mktemp -d) + new_tmp_dir="${TMPDIR:-/tmp}/zmk-config" + mkdir -p "${new_tmp_dir}" echo "base_dir=${new_tmp_dir}" >> $GITHUB_ENV else echo "base_dir=${GITHUB_WORKSPACE}" >> $GITHUB_ENV |