@@ -828,9 +828,29 @@ jobs:
828828 container : " alpine:edge" ,
829829 },
830830 ]
831- container : ${{ matrix.metadata.container }}
831+ container :
832+ image : ${{ matrix.metadata.container }}
833+ volumes :
834+ - /usr/local:/host/usr/local
832835 steps :
833836 - uses : actions/checkout@v6
837+ - name : Show disk capacity
838+ if : startsWith(matrix.metadata.build, 'linux')
839+ run : df -h
840+ # Saves ~21 GiB
841+ - name : Clean up disk space (container)
842+ run : |
843+ rm -rf /__t/*
844+ rm -rf /host/usr/local/.ghcup
845+ rm -rf /host/usr/local/lib/android
846+ if : startsWith(matrix.metadata.build, 'linux') && matrix.metadata.container != ''
847+ # Saves ~16 GiB
848+ - name : Clean up disk space (native)
849+ run : |
850+ sudo rm -rf /__t/*
851+ sudo rm -rf /usr/local/.ghcup
852+ sudo rm -rf /usr/local/lib/android
853+ if : startsWith(matrix.metadata.build, 'linux') && matrix.metadata.container == ''
834854 - name : Show disk capacity
835855 if : startsWith(matrix.metadata.build, 'linux')
836856 run : df -h
@@ -909,8 +929,6 @@ jobs:
909929 EOF
910930 if : matrix.metadata.target
911931 - name : Cache
912- # TODO: fix disk space issue for a couple of Linux runners
913- if : ${{ !(matrix.stage.make == 'test-stage-5-test-examples' && (matrix.metadata.build == 'linux-musl' || matrix.metadata.build == 'linux-x64')) }}
914932 # TODO: v3 is unable to Restore the cache for some reason
915933 uses : whywaita/actions-cache-s3@v2
916934 with :
0 commit comments