Fix build failures on newer linux kernels #12
Workflow file for this run
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: Continuous Integration | |
on: | |
push: | |
branches: [ '*' ] | |
pull_request: | |
branches: [ '*' ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
kernel: | |
- 4.4.260 | |
- 4.9.260 | |
- 4.14.224 | |
- 4.19.179 | |
- 5.4.104 | |
- 5.10.22 | |
- 5.11.6 | |
- 5.14.0 | |
name: "Linux ${{ matrix.kernel }}" | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt-get install libelf-dev | |
- name: Download kernel sources | |
run: curl https://cdn.kernel.org/pub/linux/kernel/$(echo ${{ matrix.kernel }} | sed -E 's/([^.]+)[.].*/v\1.x/')/linux-${{ matrix.kernel }}.tar.xz | tar xJ | |
- name: Configure kernel sources | |
run: | | |
cp /boot/config-$(uname -r) linux-${{ matrix.kernel }}/.config | |
yes "" | make -C linux-${{ matrix.kernel }} oldconfig | |
make -C linux-${{ matrix.kernel }} modules_prepare | |
- name: Build | |
run: | | |
make KSRC=linux-${{ matrix.kernel }} |