Skip to content

Commit d6a0213

Browse files
authored
ci: make disk space available for release binaries (#748)
Signed-off-by: Nathanael Liechti <[email protected]>
1 parent ef57e82 commit d6a0213

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

.github/workflows/release.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33

44
on:
55
push:
6-
tags: ["v*"]
6+
tags: ['v*']
77

88
# Releases need permissions to read and write the repository contents.
99
# GitHub considers creating releases and uploading assets as writing contents.
@@ -14,6 +14,41 @@ jobs:
1414
goreleaser:
1515
runs-on: ubuntu-24.04
1616
steps:
17+
- name: Free up disk space
18+
run: |
19+
Remove Java (JDKs)
20+
sudo rm -rf /usr/lib/jvm
21+
22+
# Remove .NET SDKs
23+
sudo rm -rf /usr/share/dotnet
24+
25+
# Remove Swift toolchain
26+
sudo rm -rf /usr/share/swift
27+
28+
# Remove Haskell (GHC)
29+
sudo rm -rf /usr/local/.ghcup
30+
31+
# Remove Julia
32+
sudo rm -rf /usr/local/julia*
33+
34+
# Remove Android SDKs
35+
sudo rm -rf /usr/local/lib/android
36+
37+
# Remove Chromium (optional if not using for browser tests)
38+
sudo rm -rf /usr/local/share/chromium
39+
40+
# Remove Microsoft/Edge and Google Chrome builds
41+
sudo rm -rf /opt/microsoft /opt/google
42+
43+
# Remove Azure CLI
44+
sudo rm -rf /opt/az
45+
46+
# Remove PowerShell
47+
sudo rm -rf /usr/local/share/powershell
48+
49+
docker system prune -af || true
50+
docker builder prune -af || true
51+
df -h
1752
- name: Checkout
1853
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
1954
with:

0 commit comments

Comments
 (0)