Skip to content

Commit 38803b5

Browse files
CI workaround for "no space left on device" error:
The default size of /run/user/1001 is about 650mb and building Hook requires more space. I couldn't find if this directory is used by Docker or Linuxkit or something else. Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
1 parent 3c98cff commit 38803b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ jobs:
5050
run: nix-shell --run .github/workflows/formatters-and-linters.sh
5151

5252
- name: Build Hook Tarballs
53-
run: nix-shell --run 'make TAG=${{steps.commitid.outputs.short}} dist'
53+
run: |
54+
# fixes "write /run/user/1001/355792648: no space left on device" error
55+
sudo mount -o remount,size=3G /run/user/1001 || true
56+
nix-shell --run 'make TAG=${{steps.commitid.outputs.short}} dist'
5457
5558
- name: Publish Hook
5659
if: github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)