Skip to content

Commit b8d68d3

Browse files
committed
ci: cleanup github runner in build_dist job to space space
1 parent 24441af commit b8d68d3

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,38 @@ jobs:
633633
name: Build for Distribution
634634
runs-on: ubuntu-22.04
635635
steps:
636+
- name: Aggressive cleanup
637+
run: |
638+
# Remove Java (JDKs)
639+
sudo rm -rf /usr/lib/jvm
640+
641+
# Remove .NET SDKs
642+
sudo rm -rf /usr/share/dotnet
643+
644+
# Remove Swift toolchain
645+
sudo rm -rf /usr/share/swift
646+
647+
# Remove Haskell (GHC)
648+
sudo rm -rf /usr/local/.ghcup
649+
650+
# Remove Julia
651+
sudo rm -rf /usr/local/julia*
652+
653+
# Remove Android SDKs
654+
sudo rm -rf /usr/local/lib/android
655+
656+
# Remove Chromium (optional if not using for browser tests)
657+
sudo rm -rf /usr/local/share/chromium
658+
659+
# Remove Microsoft/Edge and Google Chrome builds
660+
sudo rm -rf /opt/microsoft /opt/google
661+
662+
# Remove Azure CLI
663+
sudo rm -rf /opt/az
664+
665+
# Remove PowerShell
666+
sudo rm -rf /usr/local/share/powershell
667+
636668
- name: Harden Runner
637669
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
638670
with:

0 commit comments

Comments
 (0)