8294941: GHA: Cut down cross-compilation sysroots
Reviewed-by: clanger, erikj
This commit is contained in:
parent
67210abd04
commit
a1747ef81a
4
.github/workflows/build-cross-compile.yml
vendored
4
.github/workflows/build-cross-compile.yml
vendored
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user