Skip to content

Commit

Permalink
setup correct .deb output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
slabajo committed Sep 6, 2024
1 parent 1301b2a commit 2fb14c2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/server-buildpackage-rust.child.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ on:
description: "Enable to build release versions; disable for development builds"
required: false
type: "boolean"
directory:
description: "directory: Working directory for the job execution"
required: true
type: "string"
default: "./"
runnerGroup:
description: "runnerGroup: Set of runners where the workflow jobs should be run"
required: false
Expand All @@ -46,23 +51,14 @@ jobs:
echo "GSTREAMER_RUST_PATCH_DIR=$PWD/server/gst-plugins-rs" >>$GITHUB_ENV
echo "JOB_TIMESTAMP=$(date --utc +%Y%m%d%H%M%S)" >>$GITHUB_ENV
# Action: https://github.com/actions/download-artifact
- name: "Copy artifacts from previous jobs"
id: "copy-artifacts"
if: ${{ inputs.copyArtifacts }}
uses: "actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a" # v3.0.2
with:
name: "artifacts"
path: "artifacts/"

- name: "Run job script"
env:
JOB_GIT_REPO: "${{ inputs.jobGitRepo }}"
JOB_GIT_NAME: "${{ inputs.jobGitName }}"
JOB_DISTRO: "${{ matrix.jobDistro }}"
JOB_RELEASE: "${{ inputs.jobRelease }}"
DISABLE_APT_PROXY: "true"
INSTALL_PATH: "${{ steps.copy-artifacts.outputs.download-path }}"
INSTALL_PATH: "${{ inputs.directory }}"
run: "ci_job_package_gst_rust_debian.sh"


Expand Down
3 changes: 2 additions & 1 deletion ci-scripts/ci_job_package_gst_rust_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ docker run --pull always --rm \
--mount type=bind,src="$KURENTO_SCRIPTS_HOME",dst=/ci-scripts \
--mount type=bind,src="${INSTALL_PATH:-$PWD}",dst=/packages \
"kurento/rust-buildpackage:${JOB_DISTRO}" \
--install-files /packages \
--timestamp "$JOB_TIMESTAMP" \
"${KURENTO_BUILDPACKAGE_ARGS[@]}"

cd ..
rm -rf tmpRepo

log "==================== END ===================="
2 changes: 1 addition & 1 deletion ci-scripts/rust-buildpackage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ CFG_PACKAGE="main"

while [[ $# -gt 0 ]]; do
case "${1-}" in
--install-files)
--dstdir)
if [[ -n "${2-}" ]]; then
CFG_DSTDIR="$(realpath "$2")"
shift
Expand Down
3 changes: 2 additions & 1 deletion docker/rust-buildpackage/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ fi

# Get generated packages out from the Docker container
if [[ -d /hostdir ]]; then
mv /packages/*.*deb /hostdir/ 2>/dev/null || true
mv ./*.*deb /hostdir/ 2>/dev/null || true
#FIXME if --dstdir is specified, .deb packages won't go into ./
else
echo "[Docker entrypoint] WARNING: No host dir where to put built packages"
fi

0 comments on commit 2fb14c2

Please sign in to comment.