Skip to content

github-workflows: deb-builder: run piuparts test after build #13

github-workflows: deb-builder: run piuparts test after build

github-workflows: deb-builder: run piuparts test after build #13

Workflow file for this run

name: Build Debian Package
on: push
jobs:
build:
runs-on: ubuntu-latest
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
- name: Run piuparts test
uses: evgeni/action-piuparts@devel
with:
package: debian/artifacts/*.changes
base-image: debian:bookworm -d bookworm