From 36d5241fea497316c5261374a023bf4afcce1cac Mon Sep 17 00:00:00 2001 From: Yvan Sraka Date: Tue, 9 Apr 2024 14:50:51 +0200 Subject: [PATCH] Fix `No space left on device` while building `devx-container` in GitHub Action (#141) --- .github/workflows/wait-and-upload.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wait-and-upload.yml b/.github/workflows/wait-and-upload.yml index fb4d2fd..d741bd0 100644 --- a/.github/workflows/wait-and-upload.yml +++ b/.github/workflows/wait-and-upload.yml @@ -119,6 +119,11 @@ jobs: # and the GHC version (currently `ghc810` and `ghc96`). if: ${{ contains(fromJSON('["x86_64-linux", "aarch64-linux"]'), inputs.platform) && contains(fromJson('["","-windows","-js"]'), inputs.target-platform) && contains(fromJson('["ghc810","ghc96"]'), inputs.compiler-nix-name) && !inputs.minimal }} steps: + - name: Free Disk Space (Ubuntu) + uses: jlumbroso/free-disk-space@main + with: + docker-images: false + - name: Checkout repository uses: actions/checkout@v3 @@ -172,4 +177,4 @@ jobs: - name: Run test command inside the Dev Container run: docker run --rm ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.platform }}.${{ inputs.compiler-nix-name }}${{ inputs.target-platform }} \ - /bin/bash -c "cabal update && cabal unpack hello && cd hello-* && cabal build" \ No newline at end of file + /bin/bash -c "cabal update && cabal unpack hello && cd hello-* && cabal build"