From 2b6175b09882152c4ee5af40f4b033659a646bab Mon Sep 17 00:00:00 2001 From: Marc Nuri Date: Sat, 31 Oct 2026 11:12:38 +0100 Subject: [PATCH] fix(ci): stop purging powershell via apt on Ubuntu 26.04 The Ubuntu 26.04 runner image installs pwsh from a GitHub release tarball into /opt/microsoft/powershell/7, because the Microsoft apt repo has no 26.04 build yet. There is no powershell apt package, so apt-get purge aborted with exit code 100 and every Linux job failed before the build started. Drop the entry from the purge list and remove the tarball directory alongside the other rm -rf cleanups to keep reclaiming that space. Co-Authored-By: Claude Opus 5.5 Signed-off-by: Marc Nuri --- .github/actions/free-disk-space/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/free-disk-space/action.yml b/.github/actions/free-disk-space/action.yml index be96169..e168d9c 100644 --- a/.github/actions/free-disk-space/action.yml +++ b/.github/actions/free-disk-space/action.yml @@ -16,7 +16,6 @@ runs: 'mono-.*' \ 'libmono.*' \ 'azure-cli' \ - 'powershell' \ '^llvm-.*' \ '^clang-.*' sudo apt-get autoremove -y @@ -25,4 +24,6 @@ runs: sudo rm -rf /usr/local/lib/android 2>/dev/null || true # Remove .NET sudo rm -rf /usr/share/dotnet 2>/dev/null || true + # Remove PowerShell (tarball install on Ubuntu 26.04, no apt package) + sudo rm -rf /opt/microsoft/powershell 2>/dev/null || true df -h