Skip to content

Commit c02ec5f

Browse files
new
2 parents 6aecaf0 + 14d56c4 commit c02ec5f

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
version: ["5.19.0", "5.19.1", "5.19.2", "5.19.3", "5.19.4"]
11+
version: ["4.9.326", "4.14.291", "4.19.256", "5.4.211", "5.10.133", "5.15.64", "5.18.19", "5.19.5"]
1212
name: Build kernel
1313
runs-on: ubuntu-22.04
1414
steps:

fetch-config.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,17 @@ else
3131
cp .fetch_config/usr/src/linux-headers-*/.config ./.config
3232
fi
3333

34-
GCC_VERSION=$(cat .config | sed -n 's/CONFIG_CC_VERSION_TEXT=".*\s\(.*\)"$/\1/p')
34+
cd ..
35+
cp .fetch_config/usr/src/linux-headers-*/.config ./.config
36+
# GCC_VERSION=$(cat .config | sed -n 's/CONFIG_CC_VERSION_TEXT=".*\s\(.*\)"$/\1/p')
37+
echo "reached 1"
38+
GCC_VERSION=$(cat .config | sed -n 's/CONFIG_GCC_VERSION=\(.*\)$/\1/p')
39+
echo $GCC_VERSION
40+
G_MAJOR=$(($GCC_VERSION/10000))
41+
G_MIDDLE=$((($GCC_VERSION%10000)/100))
42+
G_LAST=$(($GCC_VERSION%100))
43+
GCC_VERSION=$G_MAJOR.$G_MIDDLE.$G_LAST
44+
echo $GCC_VERSION
3545
GCC_VERSION_MAJOR=$(echo "${GCC_VERSION}" | sed -En 's/(.*).[0-9]+/\1/p')
3646

3747
rm -rf .fetch_config

0 commit comments

Comments
 (0)