Skip to content

Workflow file for this run

name: Build package
on: [push, workflow_dispatch]
jobs:
build_dkms:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: install dependencies
run: |
sudo apt update
sudo apt install dpkg-dev debhelper dkms
- name: prepare sources
run: |
rm -rf debian
cp -r debian.dkms debian
- name: make dkms source package
run: |
fakeroot debian/rules binary
mv ../rex-dkms*_all.deb .
- name: upload package artifacts
uses: actions/upload-artifact@v4
with:
name: package
path: rex-dkms*_all.deb
if-no-files-found: error
# The package contains only sources. Let's check that it's buildable,
# and no surprising errors apeear in the build log.
- name: build module with dkms
run: |
sudo apt-get install -y ./rex-dkms*_all.deb \
|| ( find /var/lib/dkms -name make.log -exec cat '{}' \; && false )