Skip to content

Commit 24859db

Browse files
committed
Recover disk space during the release step too
1 parent 2ea53c6 commit 24859db

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,8 @@ jobs:
220220
with:
221221
username: "${{ env.DOCKER_HUB_USERNAME }}"
222222
password: "${{ secrets.DOCKER_HUB_TOKEN }}"
223+
- name: Recover disk space
224+
run: sudo rm -rf /usr/local/lib/android
223225
- name: Pull containers
224226
run: echo ghcr.io/integer32llc/rust-playground-ci-rust-{stable,beta,nightly}:${{ github.run_id }} | xargs -n1 docker pull
225227
- name: Rename containers

ci/workflows.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ components:
1717
with:
1818
ref: ${{ github.event.pull_request.head.sha }}
1919

20+
- recover_disk_space: &recover_disk_space
21+
name: Recover disk space
22+
run: |-
23+
sudo rm -rf /usr/local/lib/android
24+
2025
- docker_buildx: &docker_buildx
2126
name: "Set up Docker Buildx"
2227
uses: docker/setup-buildx-action@v3
@@ -230,9 +235,7 @@ workflows:
230235
steps:
231236
- *checkout_pr
232237

233-
- name: Recover disk space
234-
run: |-
235-
sudo rm -rf /usr/local/lib/android
238+
- *recover_disk_space
236239

237240
- name: "Configure Ruby"
238241
uses: ruby/setup-ruby@v1
@@ -310,6 +313,8 @@ workflows:
310313
- *login_ghcr
311314
- *login_docker_hub
312315

316+
- *recover_disk_space
317+
313318
- *pull_containers
314319
- *rename_all_containers
315320

0 commit comments

Comments
 (0)