compiletest: get version from file

thus you can just edit that file to update the new version.

later we can probably make it create a tag with that version if:

a) no such tag already exists
b) the compiletest doesn't have errors
c) it's on the main branch

we might want to make the version have a -x at the end e.g. 6.1.2-1 so
we can release fixes between versions
This commit is contained in:
Orlando Chamberlain
2023-02-18 22:26:37 +11:00
parent 930bd6e48a
commit c168792674
3 changed files with 7 additions and 5 deletions
+5 -5
View File
@@ -8,7 +8,7 @@ jobs:
uses: actions/checkout@v2
- name: Download Kernel Source
run: |
KVER="6.1.12" #FIXME
KVER=$(cat version)
_RC=$(echo $KVER | tr -d 1234567890.)
if [ -n "$_RC" ]; then
@@ -25,7 +25,7 @@ jobs:
libcap-dev bc rsync cpio dh-modaliases debhelper kernel-wedge curl gawk dwarves zstd
- name: Checkpatch
run: |
KVER="6.1.12" #FIXME
KVER=$(cat version)
cd linux-$KVER
# Skip apple-bce because it needs a lot of formatting changes, and
# asahi because they are handling that.
@@ -33,7 +33,7 @@ jobs:
$(echo ../*.patch | tr " " "\n" | grep -v -e "apple-bce" -e asahi) || true
- name: Apply Patches
run: |
KVER="6.1.12" #FIXME
KVER=$(cat version)
cd linux-$KVER
for patch in ../*.patch; do
@@ -43,7 +43,7 @@ jobs:
- name: Setting Config
run: |
KVER="6.1.12" #FIXME
KVER=$(cat version)
cd linux-$KVER
cp arch/x86/configs/x86_64_defconfig ./.config
@@ -52,7 +52,7 @@ jobs:
- name: Building Kernel
run: |
KVER="6.1.12" #FIXME
KVER=$(cat version)
cd linux-$KVER
make
+1
View File
@@ -0,0 +1 @@
linux-*/
+1
View File
@@ -0,0 +1 @@
6.1.12