Skip to content

Commit

Permalink
Freeing CI build disk space for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KSDaemon committed Jun 18, 2024
1 parent c126b1b commit ff71e4f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,23 @@ jobs:
rustup toolchain install ${{ matrix.rust }}
rustup default ${{ matrix.rust }}
rustup component add rustfmt
- name: Maximize build space (disk space limitations)
run: |
echo "Disk Space before cleanup"
du -h --max-depth 1 / 2>/dev/null || true
du -h --max-depth 1 /opt 2>/dev/null || true
du -h --max-depth 1 /__t 2>/dev/null || true
du -h --max-depth 1 /__e 2>/dev/null || true
du -h --max-depth 1 /__w 2>/dev/null || true
df -h
apt-get clean
rm -rf /usr/share/dotnet
rm -rf /usr/local/lib/android
rm -rf /opt/ghc
rm -rf /opt/hostedtoolcache/CodeQL
echo "Disk Space after cleanup"
df -h
- name: Run tests
run: |
export ARROW_TEST_DATA=$(pwd)/testing/data
Expand Down

0 comments on commit ff71e4f

Please sign in to comment.