Skip to content

Commit

Permalink
ci: linux-build, ubuntu-latest, series and version latest added.
Browse files Browse the repository at this point in the history
It is possible to set series and version to latest to track the future
compatibility.
  • Loading branch information
jerzyjamroz committed Sep 15, 2023
1 parent b23d1ac commit c440d5a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci-scripts-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:
- 'documentation/**'
- 'python/**'
- '**/*.md'
workflow_dispatch:

env:
SETUP_PATH: .ci-local:.ci
Expand Down Expand Up @@ -97,6 +98,11 @@ jobs:
configuration: default
base: "7.0"

- os: ubuntu-latest
cmp: gcc
configuration: default
base: "7.0"

steps:
- uses: actions/checkout@v2
with:
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
paths:
- 'mrmShared/linux/**'
workflow_dispatch:

jobs:
specific:
Expand All @@ -20,23 +21,18 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-16.04
series: 3.x
version: 3.2.1
cc: gcc-4.8

- os: ubuntu-16.04
series: 3.x
version: 3.16.1
cc: gcc-4.8

- os: ubuntu-20.04
series: 4.x
version: 4.9.1

- os: ubuntu-20.04
series: 5.x
version: 5.9.6

- os: ubuntu-latest
series: latest
version: latest

steps:
- uses: actions/checkout@v2
- name: Info
Expand All @@ -51,6 +47,13 @@ jobs:
- name: Setup Linux
run: |
install -d kernel
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\.xz' | sort -t- -k2,2n -k3,3n -k4,4n | tail -n 1 | sed 's/linux-\(.*\)\.tar\.xz/\1/')
fi
echo "https://cdn.kernel.org/pub/linux/kernel/v$KSER/linux-$KVER.tar.xz"
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
make -C kernel CC=${CC:=gcc} modules_prepare
Expand Down

0 comments on commit c440d5a

Please sign in to comment.