Skip to content

Commit

Permalink
fix(build): Used a fixed temp dir for caching.
Browse files Browse the repository at this point in the history
* Improve GHA caching by using a fixed temporary directory
  when using one.
  • Loading branch information
petejohanson committed Feb 14, 2024
1 parent 40adb38 commit 1339fda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-user-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
export 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
Expand Down

0 comments on commit 1339fda

Please sign in to comment.