try install dkms module #4
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: 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: | | |
apt-get install -y ./rex-dkms*_all.deb \ | |
|| ( find /var/lib/dkms -name make.log -exec cat '{}' \; && false ) |