diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index 47ed6c04d..ba5848e52 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -44,6 +44,9 @@ jobs: - uses: actions/checkout@v4 + - name: Free Disk Space + run: ./disk_clean.sh + - name: Install poetry run: pipx install poetry diff --git a/disk_clean.sh b/disk_clean.sh new file mode 100755 index 000000000..90f81c99b --- /dev/null +++ b/disk_clean.sh @@ -0,0 +1,9 @@ +#!/bin/bash +# adapted from https://github.com/jlumbroso/free-disk-space/blob/main/action.yml + +set -x + +echo "Remove Android library" +sudo rm -rf /usr/local/lib/android || true +echo "Remove .NET runtime" +sudo rm -rf /usr/share/dotnet || true