Skip to content

Commit

Permalink
Free up disk space for Linux wheel building in .github/workflows/pyth…
Browse files Browse the repository at this point in the history
…on-wheel-vcpkg.yml.
  • Loading branch information
Shane-J-Latham committed Jan 6, 2024
1 parent 3214394 commit 243b125
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/python-wheel-vcpkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 243b125

Please sign in to comment.