1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

ci: release build using too much space ()

I'm not sure what changed, I guess something in the runner, but anyway,
it seems now we're hitting the limits of it.

To work around it, I'm doing the following:

- removing some unused things that take a lot of space and not used
(codeql, haskell, android, dotnet)
- prune docker images
- clone only the last 1000 commits + tags instead of the entire history
(which is getting kinda big)

Hopefully that is enough. The cleanups alone should increase the free
space from ~21GB to ~38GB. I doubt we're using that much.

---------

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2024-11-14 08:27:21 -03:00 committed by GitHub
parent 885bcc090b
commit 2793f365ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 24 additions and 2 deletions

@ -16,9 +16,18 @@ jobs:
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
- run: df -h
- name: "node-cleanup"
# this should increase free space from ~21gb to ~38gb
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
sudo docker builder prune -a
- run: df -h
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
fetch-depth: 1000 # never anything near had that many commits in a release anyway.
fetch-tags: true
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
with:
version: 3.x
@ -60,6 +69,8 @@ jobs:
MACOS_NOTARY_ISSUER_ID: ${{ secrets.MACOS_NOTARY_ISSUER_ID }}
MACOS_NOTARY_KEY_ID: ${{ secrets.MACOS_NOTARY_KEY_ID }}
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
- run: df -h
if: ${{ always() }}
notify:
runs-on: ubuntu-latest
needs:

@ -70,9 +70,18 @@ jobs:
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
- run: df -h
- name: "node-cleanup"
# this should increase free space from ~21gb to ~38gb
run: |
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
sudo docker builder prune -a
- run: df -h
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
fetch-depth: 1000 # never anything near had that many commits in a release anyway.
fetch-tags: true
- uses: arduino/setup-task@b91d5d2c96a56797b48ac1e0e89220bf64044611 # v1
with:
version: 3.x
@ -136,3 +145,5 @@ jobs:
MACOS_NOTARY_KEY: ${{ secrets.MACOS_NOTARY_KEY }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
run: task goreleaser
- run: df -h
if: ${{ always() }}