--- /dev/null
+name: 'setup Fedora'
+description: 'Setup a Fedora container for running CI'
+runs:
+ using: 'composite'
+ steps:
+ - name: Install dependencies
+ shell: bash
+ run: |
+ dnf update -y
+ dnf install -y \
+ autoconf \
+ automake \
+ make \
+ gcc \
+ kernel-devel \
+ zlib-devel \
+ xz-devel \
+ libzstd-devel \
+ openssl-devel \
+ gtk-doc \
+ libtool \
+ scdoc
+ # CI builds with KDIR pointing to /usr/lib/modules/*/build
+ # so just a foo/build pointing to the right place, assuming
+ # just one kernel installed
+ mkdir -p /usr/lib/modules/foo/
+ ln -s /usr/src/kernels/* /usr/lib/modules/foo/build
runs-on: ubuntu-latest
strategy:
matrix:
- container: ['ubuntu:22.04', 'ubuntu:24.04', 'archlinux:base-devel']
+ container: ['ubuntu:22.04', 'ubuntu:24.04', 'archlinux:base-devel', 'fedora:latest']
container:
image: ${{ matrix.container }}
if: ${{ startsWith(matrix.container, 'ubuntu') }}
- uses: ./.github/actions/setup-archlinux
if: ${{ startsWith(matrix.container, 'archlinux') }}
+ - uses: ./.github/actions/setup-fedora
+ if: ${{ startsWith(matrix.container, 'fedora') }}
- name: configure
run: |