Skip to content

Commit 4f182bc

Browse files
Copilotnjzjz
andauthored
ci: use disk-space-reclaimer in build_docker workflow (#5242)
The `build_docker` job runs out of disk space with current manual cleanup (`rm -rf /opt/hostedtoolcache`). ## Changes - Replace manual cleanup with `insightsengineering/disk-space-reclaimer@v1` action in `build_docker` job - Configure comprehensive cleanup: tools-cache, Android SDK, .NET SDK, Haskell, large-packages, swap-storage, and docker-images This frees up significantly more space than the previous manual approach by removing multiple pre-installed components that consume disk space on GitHub Actions runners. <!-- START COPILOT ORIGINAL PROMPT --> <details> <summary>Original prompt</summary> > > ---- > > *This section details on the original issue you should resolve* > > <issue_title>Fix disk space shortage in build_docker action</issue_title> > <issue_description>The `build_docker` action is running out of disk space. Although some pre-installed software is currently being removed, it is not enough. > > **Proposed Solution:** > Use `insightsengineering/disk-space-reclaimer@v1` to free up more space. > > **Configuration:** > ```yaml > - name: Free Disk Space (Ubuntu) > uses: insightsengineering/disk-space-reclaimer@v1 > with: > tools-cache: true > android: true > dotnet: true > haskell: true > large-packages: true > swap-storage: true > docker-images: true > ``` > > --- > *Generated by OpenClaw*</issue_description> > > ## Comments on the Issue (you are @copilot in this section) > > <comments> > </comments> > </details> <!-- START COPILOT CODING AGENT SUFFIX --> - Fixes #5241 <!-- START COPILOT CODING AGENT TIPS --> --- 💬 We'd love your input! Share your thoughts on Copilot coding agent in our [2 minute survey](https://gh.io/copilot-coding-agent-survey). --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: njzjz <9496702+njzjz@users.noreply.github.com>
1 parent f6d5d95 commit 4f182bc

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/build_wheel.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,16 @@ jobs:
113113
- variant: ""
114114
cuda_version: "12"
115115
steps:
116-
- name: Delete huge unnecessary tools folder
117-
run: rm -rf /opt/hostedtoolcache
116+
- name: Free Disk Space (Ubuntu)
117+
uses: insightsengineering/disk-space-reclaimer@v1
118+
with:
119+
tools-cache: true
120+
android: true
121+
dotnet: true
122+
haskell: true
123+
large-packages: true
124+
swap-storage: true
125+
docker-images: true
118126
- uses: actions/checkout@v6
119127
- uses: actions/download-artifact@v7
120128
with:

0 commit comments

Comments
 (0)