Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

fix: clear out space on ubuntu runners before running Rust tests (#7678)

Michael Bolin7386e2efbc06
diff --git a/.github/workflows/rust-ci.yml b/.github/workflows/rust-ci.yml
index 08c39db69d..f2620dcb7f 100644
--- a/.github/workflows/rust-ci.yml
+++ b/.github/workflows/rust-ci.yml
@@ -369,6 +369,22 @@ jobs:
steps:
- uses: actions/checkout@v6
+
+ # We have been running out of space when running this job on Linux for
+ # x86_64-unknown-linux-gnu, so remove some unnecessary dependencies.
+ - name: Remove unnecessary dependencies to save space
+ if: ${{ startsWith(matrix.runner, 'ubuntu') }}
+ shell: bash
+ run: |
+ set -euo pipefail
+ sudo rm -rf \
+ /usr/local/lib/android \
+ /usr/share/dotnet \
+ /usr/local/share/boost \
+ /usr/local/lib/node_modules \
+ /opt/ghc
+ sudo apt-get remove -y docker.io docker-compose podman buildah
+
- uses: dtolnay/[email protected]
with:
targets: ${{ matrix.target }}