From 9c4bb93b47f9a366a7755e5e265d64c9870b6128 Mon Sep 17 00:00:00 2001 From: Christian Hopps Date: Tue, 21 May 2024 09:57:30 -0400 Subject: [PATCH] ci: disable kernel build tests, they just take too long Signed-off-by: Christian Hopps --- .github/workflows/ci.yml | 257 +++++++++++++++++++-------------------- Makefile | 2 +- 2 files changed, 129 insertions(+), 130 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9622807..93bceaf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,135 +68,134 @@ jobs: path: bzImage retention-days: 1 - build-warn-kernel: - runs-on: ubuntu-22.04 - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Checkout kernel repository - uses: actions/checkout@v4 - with: - repository: LabNConsulting/iptfs-linux - ref: iptfs - path: linux - - - name: Install build depencies - run: | - sudo apt-get update -y - sudo apt-get install -y ccache device-tree-compiler libelf-dev sparse xz-utils - - - name: Warn Kernel build cache - id: warn-linux-cache - uses: actions/cache@v4 - with: - path: output-linux - # We need a unique key name in order for new versions to save - key: ${{ runner.os }}-warn-kernel-${{ hashFiles('linux.config', 'output-linux/**/*.[ch]', 'linux/**/*.[ch]') }} - restore-keys: | - key: ${{ runner.os }}-warn-kernel- - - - name: Build warn kernel - run: | - set -x - if [ -d output-linux ]; then - echo "Cache found, checking for config difference" - # If the kernel config is changed just wipe the cache - if ! diff -q -u1 linux.config output-linux/.config -I '^[ \t]*#' -I '^[ \t]*$' 2>/dev/null; then - echo "Kernel configs differ erasing cache" - rm -rf output-linux - fi - fi - - export CCACHE_DIR=$PWD/output-linux/.ccache - [ -d output-linux ] || mkdir output-linux - (cd output-linux && ccache -z) - make CC="ccache gcc" KBUILD_BUILD_TIMESTAMP="" LINUXCONFIG=linux.config test-warn-kernel - (cd output-linux && ccache -s) - - - name: Archive kernel warn log - if: ${{ always() }} - uses: actions/upload-artifact@v4 - with: - name: warn-linux-log - path: warn-kernel-log.txt - - - build-all-mod-kernel: - runs-on: ubuntu-22.04 - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Checkout kernel repository - uses: actions/checkout@v4 - with: - repository: LabNConsulting/iptfs-linux - ref: iptfs - path: linux - - - name: Install build depencies - run: | - sudo apt-get update -y - sudo apt-get install -y ccache device-tree-compiler libelf-dev xz-utils - - - name: All-Mod Kernel build cache - id: all-mod-linux-cache - uses: actions/cache@v4 - with: - path: output-linux - # We need a unique key name in order for new versions to save - key: ${{ runner.os }}-all-mod-kernel-${{ hashFiles('output-linux/**/*.[ch]', 'linux/**/*.[ch]') }} - restore-keys: | - key: ${{ runner.os }}-all-mod-kernel- - - - name: All-Mod Build kernel - run: | - set -x - export CCACHE_DIR=$PWD/output-linux/.ccache - [ -d output-linux ] || mkdir output-linux - make linux-allmodconfig - (cd output-linux && ccache -z) - make CC="ccache gcc" KBUILD_BUILD_TIMESTAMP="" - (cd output-linux && ccache -s) - - build-all-yes-kernel: - runs-on: ubuntu-22.04 - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Checkout kernel repository - uses: actions/checkout@v4 - with: - repository: LabNConsulting/iptfs-linux - ref: iptfs - path: linux - - - name: Install build depencies - run: | - sudo apt-get update -y - sudo apt-get install -y ccache device-tree-compiler libelf-dev xz-utils - - - name: All-Yes Kernel build cache - id: all-yes-linux-cache - uses: actions/cache@v4 - with: - path: output-linux - # We need a unique key name in order for new versions to save - key: ${{ runner.os }}-all-yes-kernel-${{ hashFiles('output-linux/**/*.[ch]', 'linux/**/*.[ch]') }} - restore-keys: | - key: ${{ runner.os }}-all-yes-kernel- - - - name: All-Yes Build kernel - run: | - set -x - export CCACHE_DIR=$PWD/output-linux/.ccache - [ -d output-linux ] || mkdir output-linux - make linux-allyesconfig - (cd output-linux && ccache -z) - make CC="ccache gcc" KBUILD_BUILD_TIMESTAMP="" - (cd output-linux && ccache -s) + # build-warn-kernel: + # runs-on: ubuntu-22.04 + # steps: + # - name: Checkout repository + # uses: actions/checkout@v4 + + # - name: Checkout kernel repository + # uses: actions/checkout@v4 + # with: + # repository: LabNConsulting/iptfs-linux + # ref: iptfs + # path: linux + + # - name: Install build depencies + # run: | + # sudo apt-get update -y + # sudo apt-get install -y ccache device-tree-compiler libelf-dev sparse xz-utils + + # - name: Warn Kernel build cache + # id: warn-linux-cache + # uses: actions/cache@v4 + # with: + # path: output-linux + # # We need a unique key name in order for new versions to save + # key: ${{ runner.os }}-warn-kernel-${{ hashFiles('linux.config', 'output-linux/**/*.[ch]', 'linux/**/*.[ch]') }} + # restore-keys: | + # key: ${{ runner.os }}-warn-kernel- + + # - name: Build warn kernel + # run: | + # set -x + # if [ -d output-linux ]; then + # echo "Cache found, checking for config difference" + # # If the kernel config is changed just wipe the cache + # if ! diff -q -u1 linux.config output-linux/.config -I '^[ \t]*#' -I '^[ \t]*$' 2>/dev/null; then + # echo "Kernel configs differ erasing cache" + # rm -rf output-linux + # fi + # fi + + # export CCACHE_DIR=$PWD/output-linux/.ccache + # [ -d output-linux ] || mkdir output-linux + # (cd output-linux && ccache -z) + # make CC="ccache gcc" KBUILD_BUILD_TIMESTAMP="" LINUXCONFIG=linux.config test-warn-kernel + # (cd output-linux && ccache -s) + + # - name: Archive kernel warn log + # if: ${{ always() }} + # uses: actions/upload-artifact@v4 + # with: + # name: warn-linux-log + # path: warn-kernel-log.txt + + # build-all-mod-kernel: + # runs-on: ubuntu-22.04 + # steps: + # - name: Checkout repository + # uses: actions/checkout@v4 + + # - name: Checkout kernel repository + # uses: actions/checkout@v4 + # with: + # repository: LabNConsulting/iptfs-linux + # ref: iptfs + # path: linux + + # - name: Install build depencies + # run: | + # sudo apt-get update -y + # sudo apt-get install -y ccache device-tree-compiler libelf-dev xz-utils + + # - name: All-Mod Kernel build cache + # id: all-mod-linux-cache + # uses: actions/cache@v4 + # with: + # path: output-linux + # # We need a unique key name in order for new versions to save + # key: ${{ runner.os }}-all-mod-kernel-${{ hashFiles('output-linux/**/*.[ch]', 'linux/**/*.[ch]') }} + # restore-keys: | + # key: ${{ runner.os }}-all-mod-kernel- + + # - name: All-Mod Build kernel + # run: | + # set -x + # export CCACHE_DIR=$PWD/output-linux/.ccache + # [ -d output-linux ] || mkdir output-linux + # make linux-allmodconfig + # (cd output-linux && ccache -z) + # make CC="ccache gcc" KBUILD_BUILD_TIMESTAMP="" + # (cd output-linux && ccache -s) + + # build-all-yes-kernel: + # runs-on: ubuntu-22.04 + # steps: + # - name: Checkout repository + # uses: actions/checkout@v4 + + # - name: Checkout kernel repository + # uses: actions/checkout@v4 + # with: + # repository: LabNConsulting/iptfs-linux + # ref: iptfs + # path: linux + + # - name: Install build depencies + # run: | + # sudo apt-get update -y + # sudo apt-get install -y ccache device-tree-compiler libelf-dev xz-utils + + # - name: All-Yes Kernel build cache + # id: all-yes-linux-cache + # uses: actions/cache@v4 + # with: + # path: output-linux + # # We need a unique key name in order for new versions to save + # key: ${{ runner.os }}-all-yes-kernel-${{ hashFiles('output-linux/**/*.[ch]', 'linux/**/*.[ch]') }} + # restore-keys: | + # key: ${{ runner.os }}-all-yes-kernel- + + # - name: All-Yes Build kernel + # run: | + # set -x + # export CCACHE_DIR=$PWD/output-linux/.ccache + # [ -d output-linux ] || mkdir output-linux + # make linux-allyesconfig + # (cd output-linux && ccache -z) + # make CC="ccache gcc" KBUILD_BUILD_TIMESTAMP="" + # (cd output-linux && ccache -s) build-rootfs: runs-on: ubuntu-22.04 diff --git a/Makefile b/Makefile index e50f412..f835def 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ warn-kernel-log.txt: output-linux # Filter out existing non-iptfs warnings with egrep test-warn-kernel: warn-kernel-log.txt - COUNT=$$(egrep -v -f check-ignore-warning.txt $< | egrep -c warning:); test $$COUNT = 0; + COUNT=$$(egrep -v -f check-ignore-warning.txt $< | egrep -c warning:); echo count=$$COUNT; test $$COUNT = 0; # kernel: linux/arch/x86/boot/bzImage