Skip to content

Commit 79bab15

Browse files
committed
free up more disk space
1 parent cbfc6b9 commit 79bab15

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

.github/workflows/release-dev-version.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,45 @@ jobs:
3232
with:
3333
username: ${{ secrets.DOCKERHUB_USERNAME }}
3434
password: ${{ secrets.DOCKERHUB_TOKEN }}
35+
- name: Free up disk space
36+
run: |
37+
# Remove Java (JDKs)
38+
sudo rm -rf /usr/lib/jvm
39+
40+
# Remove .NET SDKs
41+
sudo rm -rf /usr/share/dotnet
42+
43+
# Remove Swift toolchain
44+
sudo rm -rf /usr/share/swift
45+
46+
# Remove Haskell (GHC)
47+
sudo rm -rf /usr/local/.ghcup
48+
49+
# Remove Julia
50+
sudo rm -rf /usr/local/julia*
51+
52+
# Remove Android SDKs
53+
sudo rm -rf /usr/local/lib/android
54+
55+
# Remove Chromium
56+
sudo rm -rf /usr/local/share/chromium
57+
58+
# Remove Microsoft/Edge and Google Chrome builds
59+
sudo rm -rf /opt/microsoft /opt/google
60+
61+
# Remove Azure CLI
62+
sudo rm -rf /opt/az
63+
64+
# Remove PowerShell
65+
sudo rm -rf /usr/local/share/powershell
66+
67+
# Remove CodeQL and other toolcaches
68+
sudo rm -rf /opt/hostedtoolcache
69+
70+
docker system prune -af || true
71+
docker builder prune -af || true
72+
df -h
73+
3574
- name: Release
3675
env:
3776
VERSION: ${{ github.event.inputs.version }}

.github/workflows/release-productive-version.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,45 @@ jobs:
3232
with:
3333
username: ${{ secrets.DOCKERHUB_USERNAME }}
3434
password: ${{ secrets.DOCKERHUB_TOKEN }}
35+
- name: Free up disk space
36+
run: |
37+
# Remove Java (JDKs)
38+
sudo rm -rf /usr/lib/jvm
39+
40+
# Remove .NET SDKs
41+
sudo rm -rf /usr/share/dotnet
42+
43+
# Remove Swift toolchain
44+
sudo rm -rf /usr/share/swift
45+
46+
# Remove Haskell (GHC)
47+
sudo rm -rf /usr/local/.ghcup
48+
49+
# Remove Julia
50+
sudo rm -rf /usr/local/julia*
51+
52+
# Remove Android SDKs
53+
sudo rm -rf /usr/local/lib/android
54+
55+
# Remove Chromium
56+
sudo rm -rf /usr/local/share/chromium
57+
58+
# Remove Microsoft/Edge and Google Chrome builds
59+
sudo rm -rf /opt/microsoft /opt/google
60+
61+
# Remove Azure CLI
62+
sudo rm -rf /opt/az
63+
64+
# Remove PowerShell
65+
sudo rm -rf /usr/local/share/powershell
66+
67+
# Remove CodeQL and other toolcaches
68+
sudo rm -rf /opt/hostedtoolcache
69+
70+
docker system prune -af || true
71+
docker builder prune -af || true
72+
df -h
73+
3574
- name: Release
3675
env:
3776
VERSION: ${{ github.event.inputs.version }}

0 commit comments

Comments
 (0)