From 81924223c6fb3f3dfa71fdae3afbb26827d8ab5f Mon Sep 17 00:00:00 2001 From: Alex Koshelev Date: Wed, 8 Nov 2023 10:05:30 -0800 Subject: [PATCH] Clean up runner space before running actions 14Gb default space is probably not enough for us anymore ``` [ec2-user@ip-172-31-49-57 ipa]$ du -sh target/ 36G target/ ``` see the discussion here https://github.com/actions/runner-images/issues/2875 --- .github/workflows/check.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 5224f9abd..9e1935d38 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -22,6 +22,26 @@ env: RUSTDOCFLAGS: -D warnings jobs: + # https://github.com/marketplace/actions/free-disk-space-ubuntu + free-disk-space: + runs-on: ubuntu-latest + steps: + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB + tool-cache: false + + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow + android: true + dotnet: true + haskell: true + large-packages: true + docker-images: true + swap-storage: true + basic: name: Basic Checks env: