Skip to content
Open
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
32 changes: 28 additions & 4 deletions .github/actions/build_package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ inputs:
description: Run lintian or not during the build
default: false

prebuilt:
description: Set to true if the package uses binaries from a prebuilt bins/ tar archive.
default: false

runs:
using: "composite"

Expand All @@ -42,6 +46,15 @@ runs:
- name: Prepare Workspace Structure For The Build
shell: bash
run: |

if [[ "${{inputs.prebuilt}}" == "true" ]]; then
cd ./package-repo && source upstream.conf
wget $ARTIFACTORY/$TAG/$DISTRO/$PACKAGE_NAME
tar -xvf $PACKAGE_NAME
rm -rf $PACKAGE_NAME
cd -
fi

echo "Listing the content of the workspace :"; tree

mkdir -p ${{inputs.build-dir}}
Expand Down Expand Up @@ -78,15 +91,26 @@ runs:
# ℹ️ chroot mode unshare is important to bypass privilege issues with the mounting
# Host Architecture: The architecture for which the binaries are being built (invariably arm64).

gbp buildpackage \
--git-ignore-branch \
--git-builder="sbuild --host=arm64 \
if [[ "${{inputs.prebuilt}}" == "true" ]]; then
sbuild --host=arm64 \
--build=${{env.BUILD_ARCH}} \
--dist=${{inputs.distro-codename}} \
$lintian_flag \
--build-dir ../${{inputs.build-dir}} \
--build-dep-resolver=apt \
$EXTRA_REPO"
$EXTRA_REPO

else

gbp buildpackage \
--git-ignore-branch \
--git-builder="sbuild --host=arm64 \
--build=${{env.BUILD_ARCH}} \
--dist=${{inputs.distro-codename}} \
$lintian_flag \
--build-dir ../${{inputs.build-dir}} \
--build-dep-resolver=apt \
$EXTRA_REPO"

RET=$?

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/qcom-build-pkg-reusable-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ on:
type: boolean
default: false

is-prebuilt:
description: Specifies whether the package relies on a prebuilt bins/ tar archive as its source of binaries.
type: boolean
default: false

runner:
description: The runner to use for the build
type: string
Expand Down Expand Up @@ -101,6 +106,7 @@ jobs:
pkg-dir: package-repo
build-dir: build-area
run-lintian: ${{inputs.run-lintian}}
prebuilt: ${{inputs.is-prebuilt}}

- name: Run ABI (Application Binary Interface) Check
if: ${{inputs.run-abi-checker == true}}
Expand Down
Loading