Skip to content

Bump actions/checkout from 6 to 7 #7

Bump actions/checkout from 6 to 7

Bump actions/checkout from 6 to 7 #7

Workflow file for this run

name: Build and test DKMS package
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
debian:
name: ${{ matrix.release }} amd64
runs-on: ubuntu-24.04
container:
image: ${{ matrix.image }}
strategy:
fail-fast: false
matrix:
include:
- release: Debian 12 (bookworm)
image: debian:12
- release: Debian 13 (trixie)
image: debian:13
steps:
- name: Install build dependencies
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends \
bash build-essential bzip2 ca-certificates curl debhelper dh-dkms dkms \
dpkg-dev file git kmod linux-headers-amd64 patch python3 shellcheck
- uses: actions/checkout@v7
- name: Validate repository scripts
run: |
bash -n scripts/*.sh
shellcheck --exclude=SC1090,SC1091 scripts/*.sh
python3 -m unittest discover -s tests -v
- name: Compile against Debian headers
run: bash ./scripts/test-build.sh
- name: Build local DKMS package
run: bash ./scripts/build-deb.sh
- name: Install and verify DKMS package
run: |
apt-get install --yes ./dist/ax-usb-nic-dkms_*_all.deb
dkms status | tee /tmp/dkms-status.txt
grep -F 'ax-usb-nic/' /tmp/dkms-status.txt
module_path="$(find /lib/modules -type f -path '*/updates/dkms/ax_usb_nic.ko*' -print -quit)"
test -n "${module_path}"
if modinfo -F alias "${module_path}" | grep -q .; then
echo 'ax_usb_nic unexpectedly has aliases and could autoload' >&2
exit 1
fi
proxmox-kernel-7:
name: Proxmox kernel 7.0 amd64
runs-on: ubuntu-24.04
container:
image: debian:13
steps:
- name: Install build dependencies and Proxmox headers
run: |
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends \
bash build-essential bzip2 ca-certificates curl debhelper dh-dkms dkms \
dpkg-dev file git kmod patch python3 shellcheck
curl --fail --show-error --silent --location \
https://enterprise.proxmox.com/debian/proxmox-release-trixie.gpg \
--output /usr/share/keyrings/proxmox-archive-keyring.gpg
printf '%s\n' \
'Types: deb' \
'URIs: http://download.proxmox.com/debian/pbs' \
'Suites: trixie' \
'Components: pbs-no-subscription' \
'Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg' \
> /etc/apt/sources.list.d/proxmox.sources
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends \
proxmox-headers-7.0
- uses: actions/checkout@v7
- name: Compile against current Proxmox 7.0 headers
run: |
kernel_dir="$(find /usr/src -mindepth 1 -maxdepth 1 -type d \
-name 'linux-headers-7.0*-pve' -print | sort -V | tail -n 1)"
test -n "${kernel_dir}"
bash ./scripts/test-build.sh --kernel-dir "${kernel_dir}"
- name: Build, install, and verify DKMS package
run: |
bash ./scripts/build-deb.sh
apt-get install --yes ./dist/ax-usb-nic-dkms_*_all.deb
dkms status | tee /tmp/dkms-status.txt
grep -F 'ax-usb-nic/' /tmp/dkms-status.txt
module_path="$(find /lib/modules -type f -path '*/updates/dkms/ax_usb_nic.ko*' -print -quit)"
test -n "${module_path}"
if modinfo -F alias "${module_path}" | grep -q .; then
echo 'ax_usb_nic unexpectedly has aliases and could autoload' >&2
exit 1
fi