Skip to content

Commit

Permalink
Updates L0 job to free space on host
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavm-nvidia committed Dec 13, 2024
1 parent daf4132 commit 18b1b46
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,28 @@ on:


jobs:
free-space:
runs-on: ubuntu-latest
steps:
# Based on https://stackoverflow.com/q/75536771
- name: Free disk space
run: |
sudo docker system prune -a -f
sudo rm -rf \
/usr/share/dotnet "$AGENT_TOOLSDIRECTORY" /usr/local/lib/android /opt/ghc \
/usr/local/share/powershell /usr/share/swift /usr/local/.ghcup \
/usr/lib/jvm
sudo apt-get purge microsoft-edge-stable || true
sudo apt-get purge google-cloud-cli || true
sudo apt-get purge dotnet-sdk-* || true
sudo apt-get purge google-chrome-stable || true
sudo apt-get autoremove -y
sudo apt-get autoclean -y
test:
needs: free-space
runs-on: ubuntu-latest
container:
image: nvcr.io/nvidia/tritonserver:24.10-py3
Expand Down

0 comments on commit 18b1b46

Please sign in to comment.