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
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ Overview
--------
qcom-build-utils holds set of tools which to developers to build, test and debug platform and CI/CD utilities.

Branches
--------
main: Primary development branch. Contributors should develop submissions based on this branch, and submit pull requests to this branch.

Features
--------
- ubuntu/build-utils scripts helps to assist build debian package, create system image and other tools related to ubuntu.
- scripts/ : Helper scripts to used in the reusable workflows
- reusable-workflows/ : Reusable workflows that other repo shall call

for more information, please refer to the README in each subdirectory.
Branches
--------
main: Primary stable branch. Contributors should develop submissions based on this branch, and submit pull requests to this branch.
development : Development happens on this branch, and gets merged back to main when the features are deemed stable
internal : This branch is the mirror of the internal version of the build-utils repo. It is there to keep a mirror, but the content
main and delvelopment has diverged substentially from it. It exists to that internal CI can use it, but should not be used
as a base for development

License
-------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This is the reusable workflow that gets invoked in other package repositories

name: Qualcomm Build Debian Package Reusable Workflow
on:
workflow_call:
Expand Down
26 changes: 26 additions & 0 deletions reusable-workflows/qcom-build-debian-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This is the TEMPLATE workflow that needs to be copied in the .github/workflows folder
# of any new debian package repo.

# If need be, adjust the branch/tag in the line that invokes the reusable workflow
# Also change the ref: to also match it

name: Build Debian Package

on:
pull_request_target:
branches: [ main ]
push:
branches: [ main ]
workflow_dispatch:

permissions:
contents: read
security-events: write

jobs:
build:
uses: qualcomm-linux/qcom-build-utils/reusable-workflows/build-debian-package-reusable-workflow.yml@main
with:
ref: main
secrets:
ACTIONS_SSH_KEY: ${{ secrets.ACTIONS_SSH_KEY }}
6 changes: 3 additions & 3 deletions scripts/ppa_organizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

This script will extract the 'canonical' package name (ie, without the major number in it, in this case its 1)
and create a folder in the PPA structure for this package name, and copy over all the .deb/ddeb that correspondt to it.

This operation will be done for all the 'canonical' package names because again, there can be multiple of this example package
alongside one another

Expand Down Expand Up @@ -81,7 +81,7 @@ def reorganize(build_dir : str, output_dir : str):

# Create a list of all the packages (.deb, -dev.deb, -dbgsym.ddeb)
files = os.listdir(build_dir)

dsc_files = [f for f in files if f.endswith('.dsc') ]
deb_files = [f for f in files if f.endswith('.deb') and "-dev" not in f]
dev_files = [f for f in files if f.endswith('.deb') and "-dev" in f]
Expand Down Expand Up @@ -113,7 +113,7 @@ def reorganize(build_dir : str, output_dir : str):
for package_name in package_names:

output_dir = os.path.join(output_dir, package_name)

# Do not delete if the directory exists, it may very well contain the same package, but with older versions
# We want to copy the newly built packages alongside the other versions
create_new_directory(output_dir, delete_if_exists=False)
Expand Down
Loading