Skip to content
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

Add a custom deb-builder workflow to build the package in CI #2

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
78 changes: 78 additions & 0 deletions .github/workflows/deb-builder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
on: push

jobs:
build-debs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: leonheldattoradex/[email protected]
env:
DEB_BUILD_OPTIONS: noautodbgsym
with:
buildpackage-opts: --build=binary --no-sign
host-arch: arm64
apt-opts: --install-recommends
extra-build-deps: ca-certificates
apt-sources: |
Types: deb
URIs: https://feeds.toradex.com/debian
leonheldattoradex marked this conversation as resolved.
Show resolved Hide resolved
Suites: testing
Components: main non-free
Signed-By: /usr/share/keyrings/build-deb-action.gpg
apt-key: |
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBGUJ0fgBEADe+nvFNajvFQQPGXXLixVz4/+xLGdnmgGef6Oe4DPuIFD7WATJ
hzH8ng+elAHVIkfrV7+j9lGWnozcBqBdvHoz46Y2EE1nk3no78aUdy+9b0wx3yWe
tqY29Nu3yVD8d64e5fuGq4PKJB1gtFkWhEfFwTmq3uiRQRfAy60DERTDF7bocQsW
hTVjc/Lr1lj4POB0HlUhzIj84o/y5SV50F0oqpJdjfu6Bbp/XVHklF4GNBabaFVf
iF11306eWKcKM2yZI4MJhAPTaTSFS51Z81lbQkyLjQzfdxAvSSsNWUUS8A3IYBhi
IwyeIS3jPtBcIDPcxKDB8rio8j6eKq0FtnW1WTVMmDdBqLlE71y2Av2d2W4ySqf+
huvhRPqCVMgsr09oHUOka19cX82YTYiMOU3/+UsKZ2DJT0w+k2z5DOirzf5SNbcA
h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SDriQtjhVkV7Kj5R06UmuDibj/LFlhK2Nn1NpZY2yjH
yjPrwDZiqfWhuP5XyvVHAXJT2Am7e+wt1odQMBjtytAQ1UmpamTiKZMIsU/lh/qV
5D0Rb8GPJXn0YqgoUTqa8uGbExdEfNxnoegcF2wUaOQoZk9yjOQc26QRV/6QVO5M
th41p/ZxuTPVJAs76MPPpeNFT9xZmsP+LWE2awaWYTTk+aAmgQQIHyqJqc/QRYsw
KKcWF/U+7aKlt2J24v7RFIMkNSRL9UiYcNhMgIJVIw2NkWlF4LoDRQ8l8DMD4St3
eKYPMo0laD2+Z4ul7hUjY7pHSDSO+erfySkFpvx83XgtF9d0uJdMXQ3gRuFhwtK7
Grl7Vu/9cvNCWtBq5/hNdGU1d4Y1HoAK6sooRbwy0JUaXHq08MDhpWQysmPpHBKX
CvvuQQ==
=VfKA
-----END PGP PUBLIC KEY BLOCK-----
apt-preferences: |
Package: *
Pin: origin feeds.toradex.com
Pin-Priority: 900
40 changes: 40 additions & 0 deletions .github/workflows/update-pipeline-status.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Update Pipeline Status

on:
push:
branches:
- toradex/**

jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Export Repo Information
run: |
echo "current_repo_name=$(basename -s .git $(git config --get remote.origin.url))" >> $GITHUB_ENV
echo "current_branch_name=${{ github.ref_name }}" >> $GITHUB_ENV
- name: Checkout Debian Package Pipeline Status Repository
uses: actions/checkout@v3
with:
repository: torizon/debian-package-pipeline-status
path: debian-package-pipeline-status
token: ${{ secrets.DEBIAN_PACKAGE_PIPELINE_STATUS_TOKEN }}
- name: Update Debian Package Pipeline Status README
run: |
cd debian-package-pipeline-status
start_line=$(grep -n "## ${current_repo_name}" README.md | cut -d':' -f1)

# Check if an entry for the branch already exists
existing_entry_line=$(grep -n "### ${current_branch_name}" README.md | cut -d':' -f1)

if [ -z "${existing_entry_line}" ]; then
# Entry does not exist, add a new entry
sed -i "${start_line}a\\### ${current_branch_name} \n[![${current_repo_name} ${current_branch_name}](https://github.com/torizon/${current_repo_name}/actions/workflows/deb-builder.yml/badge.svg?branch=${branch_name})](https://github.com/torizon/${current_repo_name}/actions?query=branch:${branch_name})" README.md
git config user.name "ci.toradex"
git config user.email "[email protected]"
git add README.md
git commit -m "Update pipeline status for ${current_repo_name}/${current_branch_name}"
git push origin main
fi
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Maintainer: Toradex Packaging Team <[email protected]>
Uploaders: Abdur Rehman <[email protected]>,
Carlos Henrique Lima Melara <[email protected]>,
Leonardo Held <[email protected]>
Build-Depends: debhelper-compat (= 13), libgpuperfcnt
Build-Depends: debhelper-compat (= 13), cmake, libgpuperfcnt
Standards-Version: 4.6.2
Homepage: https://github.com/nxp-imx/imx-gputop
Rules-Requires-Root: no
Expand Down