ci: skip disk cleanup on larger runners

The disk cleanup steps exist because the default ubuntu-latest
runner has limited free space. Runners selected via CI_RUNNERS
other than the default come with much larger disks, making the
cleanup unnecessary overhead.

Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
This commit is contained in:
Marco Nenciarini 2026-07-20 18:06:19 +02:00
parent 258d4b17d1
commit 12d66a070b

View File

@ -14,6 +14,7 @@ jobs:
contents: write
steps:
- name: Cleanup Disk
if: vars.CI_RUNNERS == '' || vars.CI_RUNNERS == 'ubuntu-latest'
uses: jlumbroso/free-disk-space@v1.3.1
with:
android: true
@ -23,6 +24,7 @@ jobs:
large-packages: false
swap-storage: false
- name: Cleanup docker cache
if: vars.CI_RUNNERS == '' || vars.CI_RUNNERS == 'ubuntu-latest'
run: |
echo "-------------Disk info before cleanup----------------"
df -h