Skip to content

Commit e07e573

Browse files
committed
ci: clear out space on centos job
Clear out space on the centos job be deleteing unnecessary files. Raised by bitcoin#33293 which pointed to a solution like google/oss-fuzz@b7f04d7 Only runs when cache provider (runner) is `gha`, and on the CentOS job.
1 parent 79d6e87 commit e07e573

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: 'Clear unnecessary files'
2+
description: 'Clear out unnecessary files to make space on the VM'
3+
runs:
4+
using: 'composite'
5+
steps:
6+
- name: Clear unnecessary files
7+
shell: bash
8+
env:
9+
DEBIAN_FRONTEND: noninteractive
10+
run: |
11+
set +o errexit
12+
sudo bash -c '(ionice -c 3 nice -n 19 rm -rf /usr/share/dotnet/ /usr/local/graalvm/ /usr/local/.ghcup/ /usr/local/share/powershell /usr/local/share/chromium /usr/local/lib/android /usr/local/lib/node_modules)&'

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,10 @@ jobs:
582582
with:
583583
cache-provider: ${{ matrix.provider || needs.runners.outputs.provider }}
584584

585+
- name: Clear unnecessary files
586+
if: ${{ needs.runners.outputs.provider == 'gha' && true || false }} # Only needed on GHA runners
587+
uses: ./.github/actions/clear-files
588+
585589
- name: Enable bpfcc script
586590
if: ${{ env.CONTAINER_NAME == 'ci_native_asan' }}
587591
# In the image build step, no external environment variables are available,

0 commit comments

Comments
 (0)