Skip to content

Commit

Permalink
bug: create new action to free up disk space on runner
Browse files Browse the repository at this point in the history
  • Loading branch information
DataBoyTX committed Aug 17, 2023
1 parent fdd41b9 commit 259e863
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,38 @@ jobs:
run: |
cd src/python && python -m pytest test
free-space:

runs-on: ubuntu-latest

env:
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1

strategy:
matrix:
flavor: [ 'dc', 'dc.cpu' ]

steps:

- name: Checkout repo
uses: actions/checkout@v3

- name: Free Disk Space
env:
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1
run: |
df -h
echo "remove big /usr/local"
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf /usr/local/lib/android >/dev/null 2>&1
df -h
sudo rm -rf /usr/share/dotnet/sdk > /dev/null 2>&1
sudo rm -rf /usr/share/dotnet/shared > /dev/null 2>&1
sudo rm -rf /usr/share/swift > /dev/null 2>&1
df -h
test-docker:

runs-on: ubuntu-latest
Expand Down

0 comments on commit 259e863

Please sign in to comment.