Skip to content

Commit a1747ef

Browse files
committed
8294941: GHA: Cut down cross-compilation sysroots
Reviewed-by: clanger, erikj
1 parent 67210ab commit a1747ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build-cross-compile.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ jobs:
145145
# Prepare sysroot and remove unused files to minimize cache
146146
sudo chroot sysroot symlinks -cr .
147147
sudo chown ${USER} -R sysroot
148-
rm -rf sysroot/{dev,proc,run,sys}
148+
rm -rf sysroot/{dev,proc,run,sys,var}
149+
rm -rf sysroot/usr/{sbin,bin,share}
150+
rm -rf sysroot/usr/lib/{apt,udev,systemd}
149151
if: steps.get-cached-sysroot.outputs.cache-hit != 'true'
150152

151153
- name: 'Configure'

0 commit comments

Comments
 (0)