Skip to content

Commit e0f7913

Browse files
committed
[gha] clear space to avoid 'No space left on device' error
1 parent 93bd4ec commit e0f7913

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/cli-tests.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ jobs:
149149
DEVBOX_DEBUG: ${{ (matrix.run-project-tests == 'project-tests-off' || inputs.example-debug) && '1' || '0' }}
150150
DEVBOX_GOLANG_TEST_TIMEOUT: "${{ (github.ref == 'refs/heads/main' || inputs.run-mac-tests) && '1h' || '30m' }}"
151151
steps:
152+
- name: clear directories to reduce disk usage
153+
# https://github.com/actions/runner-images/issues/2840#issuecomment-1284059930
154+
run: |
155+
sudo rm -rf /usr/share/dotnet
156+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
157+
152158
- uses: actions/checkout@v4
153159
- name: Mount golang cache
154160
uses: actions/cache@v4

0 commit comments

Comments
 (0)