@@ -59,36 +59,27 @@ jobs:
5959 artifact_name : ${{ steps.set-outputs.outputs.artifact_name }}
6060 docker_manifest_sha_name : ${{ steps.set-outputs.outputs.docker_manifest_sha_name }}
6161 steps :
62- - name : Check disk space
63- run : df -h
64- - name : remove android sdk
65- run : sudo rm -rf /usr/local/lib/android
66- - name : Check disk space
67- run : df -h
62+ - name : Clean Github Runner to free up space
63+ run : |
64+ df -h
65+ # unused android sdk: https://github.com/actions/runner-images/issues/13315#issuecomment-3541347562
66+ sudo rm -rf /usr/local/lib/android
67+ df -h
6868 - name : Checkout
6969 uses : actions/checkout@v4
7070 with :
7171 fetch-depth : 0 # required for tag metadata
7272
73- - name : Check disk space
74- run : df -h
75-
7673 - name : Setup Go
7774 uses : actions/setup-go@v5
7875 with :
7976 go-version : " ~1.24"
8077 cache : ${{ env.caching_enabled }}
8178 check-latest : true
8279
83- - name : Check disk space
84- run : df -h
85-
8680 - name : Tidy go.mod files
8781 run : go mod tidy
8882
89- - name : Check disk space
90- run : df -h
91-
9283 - name : Ensure goreleaser up to date
9384 run : make check
9485
@@ -122,9 +113,6 @@ jobs:
122113 if : steps.cache-sources.outputs.cache-hit == 'true'
123114 run : echo "✅ Source generation skipped - no source changes detected"
124115
125- - name : Check disk space
126- run : df -h
127-
128116 - name : Verify source files exist
129117 run : ./scripts/validate-source-files.sh -d ${{ inputs.distribution }} -f ${{ inputs.fips }}
130118
@@ -218,9 +206,6 @@ jobs:
218206 ARGS_HASH=$(echo "${{ env.goreleaser_args }}" | sha256sum | cut -d' ' -f1)
219207 echo binary_key=goreleaser-build-${{ inputs.distribution }}-${ARGS_HASH}-${BINARY_HASH} >> $GITHUB_OUTPUT
220208
221- - name : Check disk space
222- run : df -h
223-
224209 - name : Cache goreleaser build
225210 id : cache-goreleaser
226211 if : ${{ env.caching_enabled }}
@@ -243,9 +228,6 @@ jobs:
243228 git tag "$version"
244229 fi
245230
246- - name : Check disk space
247- run : df -h
248-
249231 - name : Build binaries & packages with GoReleaser
250232 if : inputs.publish || steps.cache-goreleaser.outputs.cache-hit != 'true'
251233 id : goreleaser
@@ -266,9 +248,6 @@ jobs:
266248 if : steps.cache-goreleaser.outputs.cache-hit == 'true'
267249 run : echo "✅ GoReleaser build skipped - using cached binaries"
268250
269- - name : Check disk space
270- run : df -h
271-
272251 - name : Validate GoReleaser build
273252 run : ./scripts/validate-goreleaser-build.sh -d ${{ inputs.distribution }}
274253
0 commit comments