Skip to content

Commit e9d4018

Browse files
authored
Merge pull request #4 from In-For-Disaster-Analytics/fix/nodesplat-ci-disk-space
NodeSplat image workflow: free runner disk space before the build
2 parents 6ffefd4 + 066f30b commit e9d4018

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎.github/workflows/publish-nodesplat.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ jobs:
2727
- name: Check out source
2828
uses: actions/checkout@v4
2929

30+
# The CUDA "devel" base image unpacks to many GB per layer, more than the runner's free disk can hold
31+
# together with the new layers ("no space left on device"). Remove preinstalled toolchains this job never uses.
32+
- name: Free disk space on the runner
33+
run: |
34+
df -h /
35+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL \
36+
/usr/local/share/boost /usr/share/swift /usr/local/.ghcup
37+
sudo docker image prune --all --force || true
38+
df -h /
39+
3040
- name: Set up Docker Buildx
3141
uses: docker/setup-buildx-action@v3
3242

0 commit comments

Comments
 (0)