Skip to content

Commit

Permalink
ci: disable kernel build tests, they just take too long
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hopps <[email protected]>
  • Loading branch information
choppsv1 committed May 21, 2024
1 parent a14ce5c commit 9c4bb93
Show file tree
Hide file tree
Showing 2 changed files with 129 additions and 130 deletions.
257 changes: 128 additions & 129 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c4bb93

Please sign in to comment.