+++ /dev/null
-#!/bin/bash
-
-set -euo pipefail
-
-for moddir in /usr/lib/modules /lib/modules; do
- if [[ -e "$moddir" ]]; then
- kernel=$(find "$moddir" -maxdepth 1 -mindepth 1 -type d -exec basename {} \;)
- break
- fi
-done
-
-# There should be one entry - the kernel we installed
-if (( $(echo "$kernel" | wc -l) != 1 )); then
- echo >&2 "Error: exactly one kernel must be installed"
- exit 1
-fi
-echo "KDIR=$moddir/$kernel/build"
schedule:
- cron: "30 2 * * 0"
+env:
+ KDIR: 'any'
+
permissions:
contents: read
- name: Setup OS
uses: ./.github/actions/setup-os
- - name: Set the environment
- run: |
- .github/print-kdir.sh >> "$GITHUB_ENV"
-
- name: Initialize CodeQL
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
with:
permissions:
contents: read
+env:
+ KDIR: 'any'
+
jobs:
analyze:
name: Analyze
- name: Setup OS
uses: ./.github/actions/setup-os
- - name: Set the environment
- run: |
- .github/print-kdir.sh >> "$GITHUB_ENV"
-
- name: Build
run: |
meson setup --native-file build-dev.ini ${{ matrix.meson_setup }} builddir/
run:
shell: bash
+env:
+ KDIR: 'any'
+
jobs:
build:
runs-on: ubuntu-24.04
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- - name: Set the environment
- run: |
- .github/print-kdir.sh >> "$GITHUB_ENV"
-
- name: configure checks
run: |
should_fail() {