From 340e51e9020f36d74f5b71fabf9769cee337f189 Mon Sep 17 00:00:00 2001 From: Yuki Iwai Date: Thu, 23 Mar 2023 02:58:38 +0900 Subject: [PATCH] Increase the free spaces in CI Signed-off-by: Yuki Iwai --- .github/workflows/template-publish-image/action.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/template-publish-image/action.yaml b/.github/workflows/template-publish-image/action.yaml index e915438847d..5b1620c39e9 100644 --- a/.github/workflows/template-publish-image/action.yaml +++ b/.github/workflows/template-publish-image/action.yaml @@ -19,6 +19,16 @@ inputs: runs: using: composite steps: + # This step is a Workaround to avoid the "No space left on device" error. + # ref: https://github.com/actions/runner-images/issues/2840 + - name: Remove unnecessary files + shell: bash + run: | + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + - name: Set up QEMU uses: docker/setup-qemu-action@v2