Skip to content

Commit 719dec4

Browse files
authored
perf: skip freeing disk space if 80+ GB available (#136)
The GitHub Actions runners seem to be switching between 72 GB and 145 GB of total disk space right now; this setting means we can save about 90 seconds that would be spent freeing disk space if we happen to get a runner with more disk space available.
1 parent 0a5fc50 commit 719dec4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,11 @@ runs:
150150
# building custom images might take a lot of space,
151151
# so it's best to remove unneeded softawre
152152
- name: Maximize build space
153-
uses: hastd/free-disk-space@78ec0490f953d89f024c95d0c293e6307ceac02e # v0.1.1
154153
if: ${{ inputs.maximize_build_space == 'true' }}
154+
uses: hastd/free-disk-space@68572aeaadb7f76bd408246328e95926323402b5 # v0.1.2
155+
with:
156+
# skip freeing more disk space if runner already has lots of available space
157+
skip-if-available: "80G"
155158

156159
- name: Set up Docker Buildx
157160
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0

0 commit comments

Comments
 (0)