Skip to content

Commit 405a0df

Browse files
committed
ci(site): free runner disk before each tutorial replay
The hospital replay builds the scaffold and the cloned Space in debug and release on top of a restored build cache. That outgrew the runner's free disk and rust-lld died with a bus error mid-link, twice, which skipped the deploy. The job never uses the preinstalled .NET, Android, GHC or CodeQL toolchains, so it now removes them first and reports disk use after the replay.
1 parent 1d19518 commit 405a0df

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎.github/workflows/site.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,15 @@ jobs:
174174
steps:
175175
- uses: actions/checkout@v4
176176

177+
# A replay builds the scaffold and the cloned Space in debug and release;
178+
# with a restored build cache that outgrows the runner's free disk and
179+
# the linker dies mid-write. The job never uses these SDKs.
180+
- name: Free runner disk space
181+
run: |
182+
df -h /
183+
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /usr/local/.ghcup /opt/hostedtoolcache/CodeQL
184+
df -h /
185+
177186
- name: Install Rust 1.95
178187
run: |
179188
rustup toolchain install 1.95.0 --profile minimal --component rustfmt,clippy
@@ -211,6 +220,10 @@ jobs:
211220
export TUTORIAL_REPLAY_OVERPASS=0
212221
make verify-${{ matrix.page }}-tutorial
213222
223+
- name: Report runner disk
224+
if: always()
225+
run: df -h / && du -sh ~/.cache/tutorial-target || true
226+
214227
deploy:
215228
if: ${{ github.server_url == 'https://github.com' && github.event_name != 'pull_request' }}
216229
needs: [build, tutorials]

0 commit comments

Comments
 (0)