-
Notifications
You must be signed in to change notification settings - Fork 593
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
Build deb packages #3495
Conversation
- 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 |
There was a problem hiding this comment.
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 \ |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed as suggested
Co-authored-by: Joe George <[email protected]>
-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 |
There was a problem hiding this comment.
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.
\ ice-deb-package-builder /workspace/ice/packaging/dpkg/build-package.sh | |
ice-deb-package-builder /workspace/ice/packaging/dpkg/build-package.sh |
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