Skip to content

Commit

Permalink
fix: Set TMPDIR to avoid disk space issues
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jalaziz committed Nov 3, 2023
1 parent 300721f commit 2cce1fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install-nix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,10 @@ if [[ -n "${INPUT_NIX_PATH:-}" ]]; then
echo "NIX_PATH=${INPUT_NIX_PATH}" >> "$GITHUB_ENV"
fi

# Set temporary directory (if not already set)
if [[ -z "${TMPDIR:-}" ]]; then
echo "TMPDIR=${RUNNER_TEMP}" >> "$GITHUB_ENV"
fi

# Close the log message group which was opened above
echo "::endgroup::"

0 comments on commit 2cce1fd

Please sign in to comment.