Skip to content

Commit 888847b

Browse files
authored
Free up disk space (again) (#2704)
1 parent 931b1bb commit 888847b

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.github/actions/setup/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ runs:
1313
using: composite
1414
steps:
1515
- name: Remove unnecessary software to free up disk space
16+
if: contains(fromJSON('["ubuntu-20.04","ubuntu-22.04"]'), inputs.os)
1617
shell: bash
1718
run: |
1819
# inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
1920
df -h
20-
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
21+
sudo rm -r /usr/share/dotnet /usr/local/lib/android /usr/local/.ghcup
2122
df -h
2223
2324
- name: Install dependencies

.github/workflows/kani.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,15 @@ jobs:
191191
runs-on: ubuntu-20.04
192192
container:
193193
image: ubuntu:18.04
194+
volumes:
195+
- /usr/local:/mnt/host-local
194196
steps:
197+
- name: Remove unnecessary software to free up disk space
198+
run: |
199+
# inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
200+
df -h
201+
rm -r /mnt/host-local/lib/android /mnt/host-local/.ghcup
202+
df -h
195203
# This is required before checkout because the container does not
196204
# have Git installed, so cannot run checkout action. The checkout
197205
# action requires Git >=2.18, so use the Git maintainers' PPA.

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,17 @@ jobs:
8484
runs-on: ubuntu-20.04
8585
container:
8686
image: ubuntu:18.04
87+
volumes:
88+
- /usr/local:/mnt/host-local
8789
permissions:
8890
contents: write
8991
steps:
92+
- name: Remove unnecessary software to free up disk space
93+
run: |
94+
# inspired by https://github.com/easimon/maximize-build-space/blob/master/action.yml
95+
df -h
96+
rm -r /mnt/host-local/lib/android /mnt/host-local/.ghcup
97+
df -h
9098
# This is required before checkout because the container does not
9199
# have Git installed, so cannot run checkout action. The checkout
92100
# action requires Git >=2.18, so use the Git maintainers' PPA.

0 commit comments

Comments
 (0)