From 6bd1bc1118b2d6ac8010aa490f751477ebf0660f Mon Sep 17 00:00:00 2001 From: Bernhard Mallinger Date: Tue, 27 Feb 2024 13:52:02 +0100 Subject: [PATCH] Clear up space before running CI (#1550) * Clear up space before running CI With all the databases and dependencies more than the 19G is needed (this is the amount which is currenlty available on runners). There is a github action which meddles with the disc layout, which is probably too much for our use case, but it gave me the idea that you can delete files which are needed to support certain platforms such as dotnet and android. https://github.com/easimon/maximize-build-space With only manually removing those files, around 30G are available which should be enough for the foreseeable future * Update main.yml --------- Co-authored-by: Tom Kralidis --- .github/workflows/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6b154ba..291a79b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,6 +44,14 @@ jobs: PYGEOAPI_CONFIG: "$(pwd)/pygeoapi-config.yml" steps: + - name: Clear up GitHub runner diskspace + run: | + echo "Space before" + df -h / + sudo rm -rf /usr/local/lib/android + sudo rm -rf /usr/share/dotnet + echo "Space after" + df -h / - name: Chown user run: | sudo chown -R $USER:$USER $GITHUB_WORKSPACE