Skip to content

Commit

Permalink
Update linux-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jerzyjamroz committed Sep 14, 2023
1 parent 83945c2 commit 47d0de2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
series: 3.x
version: 3.10

- os: ubuntu-20.04
series: 4.x
version: 4.9.1
Expand All @@ -34,8 +30,8 @@ jobs:
version: 5.9.6

- os: ubuntu-latest
series: 5.x
version: 5.15
series: latest
version: latest

steps:
- uses: actions/checkout@v2
Expand All @@ -50,6 +46,12 @@ jobs:
[ "${{ matrix.cc }}" != "gcc-4.8" ] || sudo apt-get -y install gcc-4.8
- name: Setup Linux
run: |
if [ "$KSER" == "latest" ]; then
KSER=$(curl -s https://cdn.kernel.org/pub/linux/kernel/ | grep -o 'v[0-9]\+\.[0-9a-zA-Z]\+/' | sed 's/\/\s*//' | sort -t. -k2,2V -k3,3V -k4,4V | tail -n 1 | sed 's/v//')
fi
if [ "$KVER" == "latest" ]; then
KVER=$(curl -s https://cdn.kernel.org/pub/linux/kernel/v$KSER/ | grep -o 'linux-[0-9]\+\.[0-9]\+\.[0-9]\+\.tar\.gz' | sort -t- -k2,2n -k3,3n -k4,4n | tail -n 1)
fi
install -d kernel
curl -s https://cdn.kernel.org/pub/linux/kernel/v$KSER/linux-$KVER.tar.xz | tar -C kernel --strip-components=1 -xJ
make -C kernel CC=${CC:=gcc} defconfig
Expand Down

0 comments on commit 47d0de2

Please sign in to comment.