Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/steps/build-binary/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ runs:
${BUILD_PROFILE_FLAG} \
--target "${{ inputs.target }}" \
--package "${{ inputs.package-name }}" \
--bin "${{ inputs.artifact-name }}" \
--bins \
${FEATURE_ARGS}
elif [[ "${{ inputs.artifact-kind }}" == "cdylib" ]]; then
cargo build \
Expand Down
20 changes: 20 additions & 0 deletions .github/steps/prepare-debian-package-assets/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,26 @@ runs:
cp "$PACKAGE_DIR/${SBOM_BASENAME}.json" "${{ inputs.package-root }}/debian/sbom.json"
cp "$PACKAGE_DIR/${SBOM_BASENAME}.xml" "${{ inputs.package-root }}/debian/sbom.xml"

# Copy any additional binaries built alongside the primary artifact.
# These are binaries defined in src/bin/ of the package that are not
# the primary artifact. cargo-deb expects them in target/release/.
PKG_BIN_DIR="${{ inputs.package-root }}/src/bin"
if [[ -d "$PKG_BIN_DIR" ]]; then
for RS_FILE in "$PKG_BIN_DIR"/*.rs; do
[[ -f "$RS_FILE" ]] || continue
BIN_NAME="$(basename "$RS_FILE" .rs)"
if [[ "$BIN_NAME" == "$ARTIFACT_BASENAME" ]]; then
continue
fi
BIN_SRC="target/${{ inputs.target }}/${PROFILE}/${BIN_NAME}"
if [[ -f "$BIN_SRC" ]]; then
cp "$BIN_SRC" "target/release/${BIN_NAME}"
chmod +x "target/release/${BIN_NAME}"
echo "Copied additional binary: ${BIN_NAME}"
fi
done
fi

- name: Copy generated man page and compress Debian assets
shell: bash
run: |
Expand Down
Loading
Loading