From 21c1ec2e93f0526da5e5dbf9f44f7fd915f37af5 Mon Sep 17 00:00:00 2001 From: Orlando Chamberlain Date: Sat, 18 Feb 2023 22:46:32 +1100 Subject: [PATCH] compiletest: allow more variables in version file in future this should let us put the release number in the same file (in case we need to push another release before the next stable linux version comes out) --- .github/workflows/compile_test.yml | 10 +++++----- version | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/compile_test.yml b/.github/workflows/compile_test.yml index 5fa2d9a..968ebd4 100644 --- a/.github/workflows/compile_test.yml +++ b/.github/workflows/compile_test.yml @@ -8,7 +8,7 @@ jobs: uses: actions/checkout@v2 - name: Download Kernel Source run: | - KVER=$(cat version) + source ./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=$(cat version) + source ./version cd linux-$KVER # Skip apple-bce because it needs a lot of formatting changes, and # modules that we won't be sending upstream. @@ -33,7 +33,7 @@ jobs: $(echo ../*.patch | tr " " "\n" | grep -v -e "apple-bce" -e asahi -e applesmc -e bcm5974 ) || true - name: Apply Patches run: | - KVER=$(cat version) + source ./version cd linux-$KVER for patch in ../*.patch; do @@ -43,7 +43,7 @@ jobs: - name: Setting Config run: | - KVER=$(cat version) + source ./version cd linux-$KVER cp arch/x86/configs/x86_64_defconfig ./.config @@ -52,7 +52,7 @@ jobs: - name: Building Kernel run: | - KVER=$(cat version) + source ./version cd linux-$KVER make diff --git a/version b/version index f9843b2..7cfbee7 100644 --- a/version +++ b/version @@ -1 +1 @@ -6.1.12 +KVER=6.1.12