File tree Expand file tree Collapse file tree 1 file changed +10
-34
lines changed Expand file tree Collapse file tree 1 file changed +10
-34
lines changed Original file line number Diff line number Diff line change 7
7
build :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
- - name : Free Disk Space (Pre-checkout)
11
- run : |
12
- echo "=== Initial disk usage ==="
13
- df -h
14
-
15
- echo "=== Removing unnecessary software ==="
16
- sudo rm -rf /usr/share/dotnet
17
- sudo rm -rf /usr/local/lib/android
18
- sudo rm -rf /opt/ghc
19
- sudo rm -rf /opt/hostedtoolcache
20
- sudo rm -rf /usr/local/.ghcup
21
- sudo rm -rf /usr/local/share/boost
22
- sudo rm -rf /usr/share/miniconda
23
- sudo rm -rf /usr/local/graalvm
24
- sudo rm -rf /opt/az
25
-
26
- echo "=== Removing swap file ==="
27
- sudo swapoff -a
28
- sudo rm -rf /swapfile
29
-
30
- echo "=== Cleaning Docker ==="
31
- docker rmi $(docker images -q) 2>/dev/null || true
32
- sudo docker system prune -af --volumes
33
-
34
- echo "=== Cleaning package manager ==="
35
- sudo apt-get clean
36
- sudo apt-get autoremove -y
37
- sudo apt-get autoclean
38
-
39
- echo "=== Final disk usage ==="
40
- df -h
41
- echo "=== Space freed: ~30-40 GB ==="
10
+ - name : Free Disk Space (Ubuntu)
11
+ uses : jlumbroso/free-disk-space@main
12
+ with :
13
+ tool-cache : false
14
+ android : true
15
+ dotnet : true
16
+ haskell : true
17
+ large-packages : true
18
+ docker-images : true
19
+ swap-storage : true
42
20
43
21
- uses : actions/checkout@v4
44
22
64
42
tags : |
65
43
yongwww/yongwww:latest
66
44
yongwww/yongwww:${{ github.sha }}
67
- cache-from : type=registry,ref=yongwww/yongwww:buildcache
68
- cache-to : type=registry,ref=yongwww/yongwww:buildcache,mode=max
You can’t perform that action at this time.
0 commit comments