Skip to content

Commit 270ebaa

Browse files
committed
.github: actions: add testing for unreleased ubuntu versions
1 parent d1581d9 commit 270ebaa

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,44 @@ jobs:
3636
run: |
3737
modinfo facetimehd
3838
grep bdc_pci /usr/lib/modprobe.d/blacklist-facetimehd-dkms.conf
39+
40+
test:
41+
name: Test build for ${{ matrix.os }}
42+
runs-on: ubuntu-latest
43+
strategy:
44+
matrix:
45+
os:
46+
- 25.04
47+
container:
48+
image: ghcr.io/whitty/gh_ubuntu_${{ matrix.os }}:feature-github_actions
49+
50+
steps:
51+
- uses: actions/checkout@v4
52+
with:
53+
submodules: recursive
54+
55+
- name: Install dependencies
56+
run: apt update && env DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends build-essential devscripts equivs
57+
- name: Install deb dependencies
58+
run: |
59+
mk-build-deps
60+
apt update && env DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends ./facetimehd-dkms-build-deps*deb
61+
git config --global --add safe.directory "${GITHUB_WORKSPACE}" && git clean -xfd
62+
63+
- name: Build
64+
run: dpkg-buildpackage -us -uc
65+
- name: Test install
66+
run: |
67+
env DEBIAN_FRONTEND=noninteractive apt install -y ../facetimehd-dkms_*.deb
68+
find /var/lib/dkms/facetimehd/ -name make.log -exec cat {} \; || true
69+
dpkg -L facetimehd-dkms
70+
71+
- name: Check install
72+
run: |
73+
# Can't use native modinfo due to underlying OS not matching container OS
74+
ver=$(echo /lib/modules/*/updates/dkms | sort -nr | head -n 1 | sed -e 's:/lib/modules/::' -e 's:/updates/dkms.*::')
75+
ls -la /lib/modules/${ver}/updates/dkms || true
76+
ls /lib/modules/${ver}/updates/dkms/facetimehd.ko || true
77+
modinfo -k ${ver} facetimehd
78+
ls -latr /usr/lib/modprobe.d/
79+
grep bdc_pci /usr/lib/modprobe.d/blacklist-facetimehd-dkms.conf

0 commit comments

Comments
 (0)