Skip to content

Commit 25b40dd

Browse files
manaporkunclaude
andcommitted
ci: fix WebGL Pages build running out of disk space
The build was failing with ENOSPC because Unity 6 + URP fills the GitHub-hosted runner's ~14GB free space. Fix by freeing ~30GB of unused toolchains (dotnet, Android SDK, CodeQL, Docker images) before the build step. Also remove dependency on deleted web/ directory — serve the WebGL build output directly as the Pages artifact. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent cb09ca3 commit 25b40dd

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

.github/workflows/webgl-pages.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ on:
99
- Assets/**
1010
- Packages/**
1111
- ProjectSettings/**
12-
- web/**
13-
- README.md
1412
- .github/workflows/webgl-pages.yml
1513

1614
permissions:
@@ -27,6 +25,18 @@ jobs:
2725
runs-on: ubuntu-latest
2826

2927
steps:
28+
- name: Free disk space
29+
run: |
30+
echo "=== Disk usage before cleanup ==="
31+
df -h /
32+
sudo rm -rf /usr/share/dotnet
33+
sudo rm -rf /usr/local/lib/android
34+
sudo rm -rf /opt/ghc
35+
sudo rm -rf /opt/hostedtoolcache/CodeQL
36+
sudo docker image prune --all --force 2>/dev/null || true
37+
echo "=== Disk usage after cleanup ==="
38+
df -h /
39+
3040
- name: Checkout repository
3141
uses: actions/checkout@v4
3242
with:
@@ -80,12 +90,10 @@ jobs:
8090
exit 1
8191
fi
8292
83-
- name: Prepare showcase site artifact
93+
- name: Prepare Pages artifact
8494
run: |
8595
rm -rf site-dist
86-
mkdir -p site-dist/unity
87-
cp -R web/. site-dist/
88-
cp -R "${{ steps.webgl-output.outputs.path }}/." site-dist/unity/
96+
cp -R "${{ steps.webgl-output.outputs.path }}" site-dist
8997
touch site-dist/.nojekyll
9098
9199
- name: Configure GitHub Pages

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ Unity Runtime Transform Handles is a powerful tool that allows developers to tra
2929

3030
[![Video](https://i.imgur.com/OSXsYXA.png)](https://www.youtube.com/watch?v=-6tpim397F0)
3131

32+
### Browser Demo (WebGL)
33+
34+
[Try it in your browser](https://manaporkun.github.io/UnityRuntimeTransformHandles/)
35+
3236
## Requirements
3337

3438
- Unity **2019.4** or higher

0 commit comments

Comments
 (0)