Skip to content

Commit

Permalink
gh/workflows/deb-builder: use torizon's Debian CI reusable workflow
Browse files Browse the repository at this point in the history
Disable piuparts for non amd64 archs while torizon/torizon-deb-ci#3 isn't fixed.

Related-to: TCCP-650, TCCP-750
Signed-off-by: Carlos Henrique Lima Melara <[email protected]>
  • Loading branch information
charles2910 committed Jun 18, 2024
1 parent 7541046 commit a218022
Showing 1 changed file with 13 additions and 32 deletions.
45 changes: 13 additions & 32 deletions .github/workflows/deb-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,20 @@ on: push

jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
attestations: write
strategy:
fail-fast: false
matrix:
os: ['debian:stable', 'debian:testing', 'debian:unstable']
arch: ['amd64', 'arm64', 'armhf']
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Update base container
run: sudo apt-get -y update

- name: Set up binfmt with qemu
uses: docker/setup-qemu-action@v3

- name: Build Debian Package
uses: jtdor/build-deb-action@v1
env:
DEB_BUILD_OPTIONS: noautodbgsym
with:
buildpackage-opts: --build=binary --no-sign
extra-docker-args: --platform ${{ matrix.arch }}
docker-image: ${{ matrix.os }}

- name: Generating artifact directory name
run: |
os_no_colon=$(echo "${{ matrix.os }}" | tr ':' '-')
echo "artifacts=weston-${os_no_colon}-${{ matrix.arch }}" >> $GITHUB_ENV
- name: Upload Workflow Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifacts }}
path: debian/artifacts/*
retention-days: 90
uses: torizon/torizon-deb-ci/.github/workflows/toradex-deb-ci.yml@v0
with:
arch: ${{ matrix.arch }}
distribution: bookworm
docker-image: debian:bookworm
package-name: weston
run-attestation: true
run-piuparts: "${{ matrix.arch }} == amd64"
upload-artifacts: true

0 comments on commit a218022

Please sign in to comment.