Skip to content

Commit

Permalink
Free up disk space on Pull Request Test CI
Browse files Browse the repository at this point in the history
Delete unused folders on the GitHub Actions runner to free up disk space for the docker build and test steps. Copied from 35f0c9a
  • Loading branch information
weiji14 committed Aug 28, 2023
1 parent acd5e2b commit 6db9bc9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,20 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3

# https://github.com/actions/runner-images/issues/2840#issuecomment-790492173
- name: Free up disk space
run: |
df -h
docker image ls
sudo apt clean
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc
df -h
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: network=host

- name: Build base-image
uses: docker/build-push-action@v3
with:
Expand Down

0 comments on commit 6db9bc9

Please sign in to comment.