File tree Expand file tree Collapse file tree 1 file changed +19
-10
lines changed
Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Original file line number Diff line number Diff line change 2222 default : " ."
2323 type : string
2424 cache :
25- description : " Whether to use GitHub cache for images. If they are very large, you might not want to ."
25+ description : " Whether to use GitHub cache for images. Since the caches are not keyed by platform, they do not work well anyway (hence the default) ."
2626 required : false
2727 default : false
2828 type : boolean
8585 outputs :
8686 tag : ${{ steps.tag.outputs.tag }}
8787 steps :
88- - name : Free space
89- if : ${{ inputs.free-space }}
90- uses : easimon/maximize-build-space@v10
91- with :
92- remove-dotnet : ' true'
93- remove-android : ' true'
94- remove-haskell : ' true'
95- remove-codeql : ' true'
96-
9788 - name : Checkout source
9889 uses : actions/checkout@v5
9990 with :
@@ -132,6 +123,24 @@ jobs:
132123 - arch : " arm64"
133124 runs_on : " ubuntu-24.04-arm"
134125 steps :
126+ - name : Free space
127+ if : ${{ inputs.free-space }}
128+ shell : bash
129+ run : |
130+ set -euo pipefail
131+ echo "Free disk space (start)"
132+ df -ah
133+ echo "Removing .NET"
134+ sudo rm -rf /usr/share/dotnet
135+ echo "Removing Android SDK"
136+ sudo rm -rf /usr/local/lib/android
137+ echo "Removing Haskell"
138+ sudo rm -rf /opt/ghc
139+ echo "Removing CodeQL"
140+ sudo rm -rf /opt/hostedtoolcache/CodeQL
141+ echo "Free disk space (end)"
142+ df -ah
143+
135144 - name : Checkout source
136145 uses : actions/checkout@v5
137146 with :
You can’t perform that action at this time.
0 commit comments