mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-19 20:57:53 +02:00
ci: release build using too much space (#5277)
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:
parent
885bcc090b
commit
2793f365ab
13
.github/workflows/nightly-oss.yml
vendored
13
.github/workflows/nightly-oss.yml
vendored
@ -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:
|
||||
|
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@ -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() }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user