File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ package-deb:
237237 - cp -a build/linux-amd64/images/jdk /rivos/
238238 - cp -a build/linux-rv64/images/jdk /rivos/sysroot/riscv/rivos
239239 # remove *.debuginfo files, they take a lot of space
240- - find /rivos/jdk /rivos/sysroot/riscv/rivos/jdk -name '*.debuginfo' -exec rm -f {} \; -print
240+ - find /rivos/jdk /rivos/sysroot/riscv/rivos/jdk -type f - name '*.debuginfo' -exec rm -f {} \; -print
241241
242242package-deb-dbg :
243243 extends : .deploy-deb
@@ -262,6 +262,9 @@ package-deb-dbg:
262262 - mkdir -p /rivos/sysroot/riscv/rivos
263263 - cp -a build/linux-amd64/images/jdk /rivos/
264264 - cp -a build/linux-rv64/images/jdk /rivos/sysroot/riscv/rivos
265+ # remove non *.debuginfo files, we only want *.debuginfo for the -dbg package
266+ - find /rivos/jdk /rivos/sysroot/riscv/rivos/jdk \( -xtype f -or -xtype l \) -not -name '*.debuginfo' -exec rm -f {} \; -print
267+ - find /rivos/jdk /rivos/sysroot/riscv/rivos/jdk -type d -print | sort -r | xargs -I{} bash -c "rmdir {} || true"
265268
266269deploy-module-ubuntu :
267270 extends : .deploy-module
You can’t perform that action at this time.
0 commit comments