Skip to content

Commit 88da499

Browse files
author
codex-bot
committed
CI: free disk before lint/test on Linux
1 parent 955e0bc commit 88da499

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/rust-ci.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ jobs:
155155
- name: Ensure rust target std installed
156156
run: rustup target add ${{ matrix.target }}
157157

158+
- name: Free disk space (Linux runners)
159+
if: ${{ startsWith(matrix.runner, 'ubuntu') }}
160+
shell: bash
161+
run: |
162+
set -euxo pipefail
163+
sudo rm -rf /usr/local/lib/android /opt/ghc /usr/share/dotnet /opt/hostedtoolcache/CodeQL || true
164+
df -h
165+
158166
# Explicit cache restore: split cargo home vs target, so we can
159167
# avoid caching the large target dir on the gnu-dev job.
160168
- name: Restore cargo home cache

0 commit comments

Comments
 (0)