Skip to content

Commit

Permalink
New debian validation pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Hook25 committed Jul 25, 2024
1 parent 69a4b09 commit 4ccf984
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/deb_validator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
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

0 comments on commit 4ccf984

Please sign in to comment.