Skip to content

Commit 89fc1f5

Browse files
authored
Reduce size of rivos-sdk-jdk-dbg package (openjdk#14)
Remove duplicated files with rivos-sdk-jdk
1 parent 4c88e66 commit 89fc1f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rivos/gitlab-ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

242242
package-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

266269
deploy-module-ubuntu:
267270
extends: .deploy-module

0 commit comments

Comments
 (0)