diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 34efaad..b2efb11 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -11,6 +11,17 @@ jobs: build-push: runs-on: ubuntu-latest steps: + - name: Maximize build disk space + uses: easimon/maximize-build-space@master + with: + # need space in /var for Docker images + root-reserve-mb: 30000 + remove-dotnet: true + remove-android: true + remove-haskell: true + remove-codeql: true + remove-docker-images: true + - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/max-space.yml b/.github/workflows/max-space.yml new file mode 100644 index 0000000..472acf1 --- /dev/null +++ b/.github/workflows/max-space.yml @@ -0,0 +1,32 @@ +name: My build action requiring more space + +on: push + +jobs: + build: + name: Build my artifact + runs-on: ubuntu-latest + steps: + - name: Free space before + run: | + echo "Free space before:" + df -h + + - name: Maximize build disk space + uses: easimon/maximize-build-space@master + with: + # need space in /var for Docker images + root-reserve-mb: 30000 + remove-dotnet: true + remove-android: true + remove-haskell: true + remove-codeql: true + remove-docker-images: true + + - name: Checkout + uses: actions/checkout@v3 + + - name: Free space after + run: | + echo "Free space after:" + df -h