Skip to content

Commit

Permalink
Merge pull request #454 from Joshua-Dickens/master
Browse files Browse the repository at this point in the history
Update ubuntu version in workflows
  • Loading branch information
Pinglinux authored Feb 26, 2025
2 parents ea646d5 + cfc0258 commit 5024945
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checkpatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ permissions:

jobs:
checkpatch:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Checkout the repo
uses: actions/checkout@v1
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ permissions:

env:
COMPILE_CFLAGS: -Werror
PREPARE_CFLAGS:
PREPARE_CFLAGS: -Wno-error=use-after-free

jobs:
compile:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
strategy:
matrix:
kernel: ["6.12", "6.10", "6.3", "5.15", "5.10", "5.4", "5.0", "4.19"]
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install gcc-9-plugin-dev libelf-dev
sudo apt-get install gcc-13-plugin-dev libelf-dev
gcc -print-file-name=plugin
- name: Checkout the repo
Expand Down Expand Up @@ -71,10 +71,16 @@ jobs:
fi
# Fix issue preventing some late-version 4.x kenels from completing config
if [[ "${KERNELVER}" == "4."* || "${KERNELVER}" == "5.1" ]]; then
if [[ "${KERNELVER}" == "4."* || "${KERNELVER}" == "5.0" ]]; then
curl "https://github.com/torvalds/linux/commit/dfbd199a7cfe3e3cd8531e1353cdbd7175bfbc5e.patch" | patch -t -N -r - -p1 -d "${KERNELROOT}" || true
fi
# Fix issue preventing the 4.19 kenel and early 5.* kernels from completing config
if [[ "${KERNELVER}" == "4."* || "${KERNELVER}" == "5.0" || "${KERNELVER}" == "5.4" ]]; then
curl --output "fix.patch" "https://lore.kernel.org/lkml/20191208214607.20679-1-vt@altlinux.org/raw"
patch -t -N -r - -p1 -d "${KERNELROOT}" < fix.patch
fi
make -C ${KERNELROOT} defconfig
${KERNELROOT}/scripts/config --file ${KERNELROOT}/.config --disable UNWINDER_ORC --enable UNWINDER_FRAME_POINTER
make -C ${KERNELROOT} prepare modules_prepare EXTRA_CFLAGS="${PREPARE_CFLAGS} ${{ matrix.prepare_cflags }}"
Expand Down

0 comments on commit 5024945

Please sign in to comment.