From af8a9eae5aad6c9945ec9f77e24874f92a3853a9 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Mon, 24 Nov 2025 09:06:00 -0600 Subject: [PATCH] [copilot] move gradle cache to `/mnt` Context: https://github.com/dotnet/android/actions/runs/19573553991/job/56052798645 Copilot is running out of disk space again, and I noticed that the gradle cache is on `/home/runner/.gradle/`, which has limited space. Moving it to `/mnt`, which has more space, should help alleviate this issue. --- .github/workflows/copilot-setup-steps.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 6b1bb6a54ef..32e8625667e 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -27,15 +27,21 @@ jobs: sudo mkdir -p /mnt/android-archives sudo mkdir -p /mnt/android-toolchain sudo mkdir -p /mnt/bin - sudo chown $USER:$USER /mnt/android-archives /mnt/android-toolchain /mnt/bin + sudo mkdir -p /mnt/gradle + sudo chown $USER:$USER /mnt/android-archives /mnt/android-toolchain /mnt/bin /mnt/gradle # Remove bin directory if it exists and create symlink to use the secondary disk rm -rf ./bin ln -s /mnt/bin ./bin + # Move Gradle cache to secondary disk to prevent "No space left on device" during Gradle operations + mkdir -p /mnt/gradle + ln -s /mnt/gradle $HOME/.gradle + echo "Android toolchain directories configured:" ls -la /mnt ls -lah bin + ls -lah $HOME/.gradle df -h /mnt - name: Setup .NET