Skip to content

Commit 2cce1fd

Browse files
committed
fix: Set TMPDIR to avoid disk space issues
Set `TMPDIR` if not already set to workaround potential disk space issues while running builds in a nix shell. See NixOS/nix#395 for more info. fixes #197
1 parent 300721f commit 2cce1fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install-nix.sh

+5
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,10 @@ if [[ -n "${INPUT_NIX_PATH:-}" ]]; then
9191
echo "NIX_PATH=${INPUT_NIX_PATH}" >> "$GITHUB_ENV"
9292
fi
9393

94+
# Set temporary directory (if not already set)
95+
if [[ -z "${TMPDIR:-}" ]]; then
96+
echo "TMPDIR=${RUNNER_TEMP}" >> "$GITHUB_ENV"
97+
fi
98+
9499
# Close the log message group which was opened above
95100
echo "::endgroup::"

0 commit comments

Comments
 (0)