From ae555fa15110382e6c2252ea94f4b60737bdd0eb Mon Sep 17 00:00:00 2001 From: Shane-J-Latham Date: Sun, 7 Jan 2024 08:56:02 +1100 Subject: [PATCH] Fix for 243b125352147a3d876036e1afbb134596a604e5, change order of freeing disk space .github/workflows/python-wheel-vcpkg.yml. --- .github/workflows/python-wheel-vcpkg.yml | 28 ++++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/python-wheel-vcpkg.yml b/.github/workflows/python-wheel-vcpkg.yml index 452ad15..4fe3087 100644 --- a/.github/workflows/python-wheel-vcpkg.yml +++ b/.github/workflows/python-wheel-vcpkg.yml @@ -20,6 +20,20 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Free disk space + shell: bash + 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: Install OS tools shell: bash run: | @@ -54,20 +68,6 @@ jobs: - name: Install cibuildwheel run: python -m pip install cibuildwheel==2.16.2 - - name: Free disk space - shell: bash - 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: |