New debian validation pipeline (infra) #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify that the debian packages are still buildable | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- checkbox-ng/** | |
- checkbox-support/** | |
- providers/base/** | |
- providers/certification-client/** | |
- providers/certification-server/** | |
- providers/docker/** | |
- providers/genio/** | |
- providers/gpgpu/** | |
- providers/iiotg/** | |
- providers/resource/** | |
- providers/sru/** | |
- providers/tpm2/** | |
pull_request: | |
branches: [ main ] | |
paths: | |
- checkbox-ng/** | |
- checkbox-support/** | |
- providers/base/** | |
- providers/certification-client/** | |
- providers/certification-server/** | |
- providers/docker/** | |
- providers/genio/** | |
- providers/gpgpu/** | |
- providers/iiotg/** | |
- providers/resource/** | |
- providers/sru/** | |
- providers/tpm2/** | |
workflow_dispatch: | |
jobs: | |
deb_validation: | |
strategy: | |
fail-fast: false | |
matrix: | |
# Version of Ubuntu | |
# note: no 16, we dont have 16 debs anymore | |
os: | |
- ubuntu-18.04 | |
- ubuntu-20.04 | |
- ubuntu-22.04 | |
- ubuntu-24.04 | |
path: | |
- checkbox-ng | |
- checkbox-support | |
- providers/base | |
- providers/certification-client | |
- providers/certification-server | |
- providers/docker | |
- providers/genio | |
- providers/gpgpu | |
- providers/iiotg | |
- providers/resource | |
- providers/sru | |
- providers/tpm2 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout Checkbox monorepo | |
uses: actions/checkout@v4 | |
# needed by providers that pull checkbox-support | |
- name: Install PPA and dependencies | |
run: | | |
sudo add-apt-repository ppa:checkbox-dev/edge | |
sudo apt-get update | |
sudo apt-get install -qq -y dpkg-dev | |
- name: Install dependencies | |
run: sudo apt-get build-dep . | |
- name: Prepare installation | |
run: mv ${{ matrix.path }}/debian . | |
- name: Build source, test and build binary | |
run: dpkg-buildpackage |