Skip to content

Test

Test #4

Workflow file for this run

name: Build Linux
on:
push:
jobs:
build:
name: Build Linux
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: |
config=$(readlink --canonicalize-existing data/config)
build=$(pwd)/build/
cd linux/
export KBUILD_OUTPUT="${build}"
mkdir "${KBUILD_OUTPUT}"
KCONFIG_ALLCONFIG="${config}" make O="${KBUILD_OUTPUT}" allnoconfig
cat "${KBUILD_OUTPUT}/.config"
make O="${KBUILD_OUTPUT}" -j8
- uses: actions/upload-artifact@v4
with:
name: kernel
path: data/build/arch/x86_64/boot/bzImage