Skip to content

Commit

Permalink
Free disk space when building in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking13 committed May 25, 2024
1 parent 44823e8 commit aec8eb0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,28 @@ jobs:
mamba env update -n pyodide-env -f environment.yml
if: steps.conda-cache.outputs.cache-hit != 'true'

# ref. https://github.com/apache/flink/blob/master/tools/azure-pipelines/free_disk_space.sh#L28-L53
- name: Free unused disk space
run: |
# delete packages
sudo apt-get remove -y '^dotnet-.*'
sudo apt-get remove -y '^llvm-.*'
sudo apt-get remove -y '^temurin-.*'
sudo apt-get remove -y '^mysql-server-core-.*'
sudo apt-get remove -y '^postgresql-.*'
sudo apt-get remove -y azure-cli google-chrome-stable google-cloud-cli firefox powershell microsoft-edge-stable mono-devel
sudo apt-get autoremove -y
sudo apt-get clean
# delete directories
sudo rm -rf /usr/share/dotnet/
sudo rm -rf /usr/share/swift/
sudo rm -rf /usr/local/graalvm/
sudo rm -rf /usr/local/.ghcup/
sudo rm -rf /usr/local/share/powershell
sudo rm -rf /usr/local/share/chromium
sudo rm -rf /usr/local/lib/android
- name: Install latest pyodide-build and build dependencies
shell: bash -l {0}
run : |
Expand Down

0 comments on commit aec8eb0

Please sign in to comment.