From a9d7ce8ca4edb360dd57ca01b06dd1498cbe39d9 Mon Sep 17 00:00:00 2001 From: Eugene Brodsky Date: Tue, 11 Jul 2023 22:11:45 -0400 Subject: [PATCH] (ci) free up disk space on GHA runners --- .github/workflows/build-container.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 54d66ce961..58e56eb1ee 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -38,6 +38,14 @@ jobs: # PLATFORMS: 'linux/amd64,linux/arm64' PLATFORMS: 'linux/amd64' steps: + - name: Free up more disk space on the runner + # https://github.com/actions/runner-images/issues/2840#issuecomment-1284059930 + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + sudo swapoff /mnt/swapfile + sudo rm -rf /mnt/swapfile + - name: Checkout uses: actions/checkout@v3