Test #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Kernel | |
on: | |
push: | |
jobs: | |
build: | |
name: Build Kernel | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
with: | |
repository: 'torvalds/linux' | |
ref: v6.6 | |
fetch-depth: 1 | |
path: linux/ | |
- name: Build kernel | |
run: | | |
mkdir linux-build/ | |
config=$(readlink --canonicalize-existing data/config) | |
build=$(readlink --canonicalize-existing linux-build/) | |
cd linux/ | |
export KBUILD_OUTPUT=${build} | |
mkdir $KBUILD_OUTPUT | |
KCONFIG_ALLCONFIG=${config} make O=$KBUILD_OUTPUT allnoconfig | |
make O=$KBUILD_OUTPUT oldconfig | |
make O=$KBUILD_OUTPUT -j8 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: kernel | |
path: data/build/arch/x86_64/boot/bzImage |