Skip to content

Commit ff29cc5

Browse files
committed
ci: Remove unused tools in smoke and integration tests
Signed-off-by: Kim Christensen <kimworking@gmail.com>
1 parent 94d88c6 commit ff29cc5

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/integ-reuseable-workflow.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,30 @@ jobs:
4343
- name: Configure Agent
4444
run: go run mage.go build
4545
shell: bash
46+
- name: Aggressive cleanup
47+
run: |
48+
df -h
49+
# Remove Java (JDKs)
50+
sudo rm -rf /usr/lib/jvm
51+
# Remove .NET SDKs
52+
sudo rm -rf /usr/share/dotnet
53+
# Remove Swift toolchain
54+
sudo rm -rf /usr/share/swift
55+
# Remove Haskell (GHC)
56+
sudo rm -rf /usr/local/.ghcup
57+
# Remove Julia
58+
sudo rm -rf /usr/local/julia*
59+
# Remove Android SDKs
60+
sudo rm -rf /usr/local/lib/android
61+
# Remove Chromium (optional if not using for browser tests)
62+
sudo rm -rf /usr/local/share/chromium
63+
# Remove Microsoft/Edge and Google Chrome builds
64+
sudo rm -rf /opt/microsoft /opt/google
65+
# Remove Azure CLI
66+
sudo rm -rf /opt/az
67+
# Remove PowerShell
68+
sudo rm -rf /usr/local/share/powershell
69+
df -h
4670
- name: Integration Test
4771
run: go run mage.go -v TestIntegration
4872
shell: bash

.github/workflows/porter.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,29 @@ jobs:
142142
- run: go version
143143
- name: Setup Bin
144144
run: go run mage.go UseXBuildBinaries
145+
- name: Aggressive cleanup
146+
run: |
147+
df -h
148+
# Remove Java (JDKs)
149+
sudo rm -rf /usr/lib/jvm
150+
# Remove .NET SDKs
151+
sudo rm -rf /usr/share/dotnet
152+
# Remove Swift toolchain
153+
sudo rm -rf /usr/share/swift
154+
# Remove Haskell (GHC)
155+
sudo rm -rf /usr/local/.ghcup
156+
# Remove Julia
157+
sudo rm -rf /usr/local/julia*
158+
# Remove Android SDKs
159+
sudo rm -rf /usr/local/lib/android
160+
# Remove Chromium (optional if not using for browser tests)
161+
sudo rm -rf /usr/local/share/chromium
162+
# Remove Microsoft/Edge and Google Chrome builds
163+
sudo rm -rf /opt/microsoft /opt/google
164+
# Remove Azure CLI
165+
sudo rm -rf /opt/az
166+
# Remove PowerShell
167+
sudo rm -rf /usr/local/share/powershell
168+
df -h
145169
- name: Run Smoke Tests
146170
run: go run mage.go -v TestSmoke

0 commit comments

Comments
 (0)