-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.73 KB
/
space.yml
File metadata and controls
56 lines (50 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Show disk usage
run: df -h
- name: prune docker
run: sudo docker image prune --all --force
- name: Remove apt packages
shell: bash
run: |
PACKAGES=(
'microsoft-edge-stable'
'azure-cli'
'^google.*'
'^temurin.*'
'powershell'
'^llvm.*'
'snapd'
'.*python.*'
'containerd.io'
'^docker-ce.*'
'podman'
'kubectl'
'^clang.*'
'.*postgres.*'
'.*mysql.*'
'.*sqlite.*'
'mecab-ipadic'
'.*gfortran.*'
'apache2-bin'
'shellcheck'
'git-lfs'
'mercurial'
'adwaita-icon-theme'
'^php.*'
'ant'
'shim-signed'
)
sudo apt-get remove --purge -y ${PACKAGES[@]}
sudo apt-get autoremove -y
sudo apt-get clean -y
- name: Show apt packages
run: dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -nr
- name: Directories
run: sudo du -h -d5 / --exclude /var --exclude /run --exclude /boot --exclude /tmp --exclude /sys --exclude /proc --exclude /lost+found | sort -hr | head -n 100
- name: Show disk usage
run: df -h