fix(build): Used a fixed temp dir for caching.
* Improve GHA caching by using a fixed temporary directory when using one.
This commit is contained in:
parent
40adb3858d
commit
c7fb418e88
1 changed files with 2 additions and 1 deletions
3
.github/workflows/build-user-config.yml
vendored
3
.github/workflows/build-user-config.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue