diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1eab1328..4f249437 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -220,6 +220,8 @@ jobs: with: username: "${{ env.DOCKER_HUB_USERNAME }}" password: "${{ secrets.DOCKER_HUB_TOKEN }}" + - name: Recover disk space + run: sudo rm -rf /usr/local/lib/android - name: Pull containers run: echo ghcr.io/integer32llc/rust-playground-ci-rust-{stable,beta,nightly}:${{ github.run_id }} | xargs -n1 docker pull - name: Rename containers diff --git a/ci/workflows.yml b/ci/workflows.yml index f303475f..a5615396 100644 --- a/ci/workflows.yml +++ b/ci/workflows.yml @@ -17,6 +17,11 @@ components: with: ref: ${{ github.event.pull_request.head.sha }} + - recover_disk_space: &recover_disk_space + name: Recover disk space + run: |- + sudo rm -rf /usr/local/lib/android + - docker_buildx: &docker_buildx name: "Set up Docker Buildx" uses: docker/setup-buildx-action@v3 @@ -230,9 +235,7 @@ workflows: steps: - *checkout_pr - - name: Recover disk space - run: |- - sudo rm -rf /usr/local/lib/android + - *recover_disk_space - name: "Configure Ruby" uses: ruby/setup-ruby@v1 @@ -310,6 +313,8 @@ workflows: - *login_ghcr - *login_docker_hub + - *recover_disk_space + - *pull_containers - *rename_all_containers