From efba7571b6df893beea3495724d868c886a6b488 Mon Sep 17 00:00:00 2001 From: Stefano Bonicatti Date: Fri, 1 Dec 2023 19:04:14 +0100 Subject: [PATCH] ci: Fix Linux build When removing packages to get more space, don't cause other packages to be installed; keep one version of temurin Java sdk. --- .github/workflows/hosted_runners.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/hosted_runners.yml b/.github/workflows/hosted_runners.yml index 90f7f9e0ef5..cd5b977ddcb 100644 --- a/.github/workflows/hosted_runners.yml +++ b/.github/workflows/hosted_runners.yml @@ -259,7 +259,7 @@ jobs: run: | run_on_host="nsenter -t 1 -m -u -n -i" packages_to_remove=$($run_on_host dpkg-query -f '${Package}\n' -W | grep "^clang-.*\|^llvm-.*\|^php.*\|^mono-.*\|^mongodb-.*\ - \|^libmono-.*\|^temurin-.*\|^dotnet-.*\|^google-chrome-stable\|^microsoft-edge-stable\|^google-cloud-sdk\|^firefox\|^hhvm\|^snapd") + \|^libmono-.*\|^temurin-8-jdk\|^temurin-11-jdk\|^temurin-17-jdk\|^dotnet-.*\|^google-chrome-stable\|^microsoft-edge-stable\|^google-cloud-sdk\|^firefox\|^hhvm\|^snapd") $run_on_host apt purge $packages_to_remove - name: Clone the osquery repository