8294941: GHA: Cut down cross-compilation sysroots

Reviewed-by: clanger, erikj
This commit is contained in:
Aleksey Shipilev 2022-10-07 17:11:07 +00:00
parent 67210abd04
commit a1747ef81a

View File

@ -145,7 +145,9 @@ jobs:
# Prepare sysroot and remove unused files to minimize cache # Prepare sysroot and remove unused files to minimize cache
sudo chroot sysroot symlinks -cr . sudo chroot sysroot symlinks -cr .
sudo chown ${USER} -R sysroot sudo chown ${USER} -R sysroot
rm -rf sysroot/{dev,proc,run,sys} rm -rf sysroot/{dev,proc,run,sys,var}
rm -rf sysroot/usr/{sbin,bin,share}
rm -rf sysroot/usr/lib/{apt,udev,systemd}
if: steps.get-cached-sysroot.outputs.cache-hit != 'true' if: steps.get-cached-sysroot.outputs.cache-hit != 'true'
- name: 'Configure' - name: 'Configure'