Skip to content

Commit

Permalink
Update Debian package naming and CI logic
Browse files Browse the repository at this point in the history
- Used the same name format for the Debian package to differentiate between different build options.
- Added logic to copy the Debian package (if generated) to the root directory.
- Updated CI pipeline to upload the generated Debian package as artifact.

Signed-off-by: Meet Gandhi <meet.gandhi@einfochips.com>
  • Loading branch information
meetgandhi-dev committed Sep 28, 2024
1 parent 4192cdb commit fc2903c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ jobs:
name: open3d-devel-linux-x86_64-ML_${{ matrix.MLOPS }}
path: open3d-devel-*.tar.xz
if-no-files-found: error
- name: Upload Debian package to GitHub artifacts (if exist)
uses: actions/upload-artifact@v4
with:
name: open3d-debian
path: open3d-devel*.deb
if-no-files-found: ignore
- name: Upload viewer to GitHub artifacts
if: ${{ env.BUILD_SHARED_LIBS == 'OFF' }}
uses: actions/upload-artifact@v4
Expand Down
1 change: 0 additions & 1 deletion cmake/Open3DPackaging.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ set(CPACK_THREADS 0) # Use all cores for compressing package

if (BUILD_DEBIAN_PACKAGE)
list(APPEND CPACK_GENERATOR DEB)
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS YES)
endif()

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.ci
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ RUN ccache -s \
&& CCACHE_DIR_PARENT=$(dirname ${CCACHE_DIR}) \
&& cd ${CCACHE_DIR_PARENT} \
&& tar -czf /${CCACHE_TAR_NAME}.tar.gz ${CCACHE_DIR_NAME} \
&& if [ "${PACKAGE}" = "ON" ]; then mv /root/Open3D/build/package/open3d-devel*.tar.xz /; fi \
&& if [ "${PACKAGE}" = "ON" ]; then find /root/Open3D/build/package -name "open3d-devel*.deb" -o -name "open3d-devel*.tar.xz" -exec mv {} / \; fi \
&& if [ "${PACKAGE}" = "VIEWER" ]; then mv /root/Open3D/build/package-Open3DViewer-deb/open3d-viewer-*-Linux.deb /; fi \
&& ls -alh /

Expand Down

0 comments on commit fc2903c

Please sign in to comment.