From 0509acbf715e467be3dbbf142faf3804c64d6483 Mon Sep 17 00:00:00 2001 From: chaosi-zju Date: Wed, 11 Oct 2023 09:22:24 +0800 Subject: [PATCH] clean ci runner disk space Signed-off-by: chaosi-zju --- .github/workflows/ci-schedule-compatibility.yaml | 13 +++++++++++++ .github/workflows/ci-schedule.yml | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.github/workflows/ci-schedule-compatibility.yaml b/.github/workflows/ci-schedule-compatibility.yaml index ad189eae5..19861b7de 100644 --- a/.github/workflows/ci-schedule-compatibility.yaml +++ b/.github/workflows/ci-schedule-compatibility.yaml @@ -26,6 +26,19 @@ jobs: go-version: 1.20.5 steps: + # Free up disk space on Ubuntu + - 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: false + docker-images: false + swap-storage: false - name: checkout code uses: actions/checkout@v3 with: diff --git a/.github/workflows/ci-schedule.yml b/.github/workflows/ci-schedule.yml index 24dd9d5be..01632383f 100644 --- a/.github/workflows/ci-schedule.yml +++ b/.github/workflows/ci-schedule.yml @@ -13,6 +13,19 @@ jobs: matrix: k8s: [ v1.21.10, v1.22.7, v1.23.4, v1.24.2, v1.25.0, v1.26.0, v1.27.3, v1.28.0 ] steps: + # Free up disk space on Ubuntu + - 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: false + docker-images: false + swap-storage: false - name: checkout code uses: actions/checkout@v3 with: