Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build deb packages #3495

Merged
merged 15 commits into from
Feb 4, 2025
Merged

Build deb packages #3495

merged 15 commits into from
Feb 4, 2025

Conversation

pepone
Copy link
Member

@pepone pepone commented Feb 4, 2025

This PR includes fixes for the DEB package builder action. See builds in https://github.com/zeroc-ice/ice/actions/workflows/build-deb-packages.yml

@pepone pepone requested a review from externl February 4, 2025 17:40
- name: Build Docker Image
run: docker build -f ${{ inputs.dockerfile_path }} -t ${{ inputs.docker_image }} .
run: docker build --pull -f ${{ inputs.dockerfile_path }} -t ice-deb-package-builder .
shell: bash
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should move the building of the Docker images to a separate workflow once we get stable builds. The same image would be reuse for different builds.

-e ICE_VERSION=${{ inputs.ice_version }} \
-e DEB_BUILD_OPTIONS="${{ inputs.deb_build_options }}" \
ice-debian-package-builder
--entrypoint /workspace/ice/packaging/dpkg/build-package.sh \
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We execute the build script from the mounted directory.

name: "Build Debian Package"
description: "Builds a Debian source package using a Docker image"
name: "Build DEB Package"
description: "Builds a DEB package using a Docker image"
inputs:
ice_version:
description: "The ICE version to build"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ICE should be Ice everywhere.

shell: bash

- name: Run Package Build with Mounted Source
run: |
mkdir -p output
mkdir -p "$HOME/build"
Copy link
Member

@externl externl Feb 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think's frowned upon to use $HOME and other dirs. It would be cleaner to clone ice into ${GITHUB_WORKSPACE}/ice like we do for the demos and create ${GITHUB_WORKSPACE}/build for the build to use

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed as suggested

-e ICE_VERSION=${{ inputs.ice_version }} \
-e DEB_BUILD_OPTIONS="${{ inputs.deb_build_options }}" \
ice-debian-package-builder
\ ice-deb-package-builder /workspace/ice/packaging/dpkg/build-package.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't t think this \ is necessary.

Suggested change
\ ice-deb-package-builder /workspace/ice/packaging/dpkg/build-package.sh
ice-deb-package-builder /workspace/ice/packaging/dpkg/build-package.sh

@pepone pepone requested a review from externl February 4, 2025 19:49
@pepone pepone merged commit f51cab6 into main Feb 4, 2025
23 of 25 checks passed
@pepone pepone deleted the build-deb-packages branch February 6, 2025 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants