From 243b125352147a3d876036e1afbb134596a604e5 Mon Sep 17 00:00:00 2001 From: Shane-J-Latham Date: Sun, 7 Jan 2024 08:49:21 +1100 Subject: [PATCH] Free up disk space for Linux wheel building in .github/workflows/python-wheel-vcpkg.yml. --- .github/workflows/python-wheel-vcpkg.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/python-wheel-vcpkg.yml b/.github/workflows/python-wheel-vcpkg.yml index e949ffe..e3f34f7 100644 --- a/.github/workflows/python-wheel-vcpkg.yml +++ b/.github/workflows/python-wheel-vcpkg.yml @@ -54,6 +54,21 @@ jobs: - name: Install cibuildwheel run: python -m pip install cibuildwheel==2.16.2 + - name: Free disk space + shell: bash + if: ${{}} + run: | + if [ "${RUNNER_OS}" == "Linux" ]; then + df -h + echo "Cleaning..." + [ -e "/usr/share/dotnet" ] && sudo rm -rf "/usr/share/dotnet" + [ -e "/opt/ghc" ] && sudo rm -rf "/opt/ghc" + [ -e "/usr/local/share/boost" ] && sudo rm -rf "/usr/local/share/boost" + [ -e "${AGENT_TOOLSDIRECTORY}" ] && sudo rm -rf "${AGENT_TOOLSDIRECTORY}" + echo "Cleaning...done." + df -h + fi + - name: Build wheels shell: bash run: |