Skip to content

ci: build the kernel on every pull request - #143

Draft
alexandermerritt wants to merge 3 commits into
edera/mainlinefrom
alexm/ci-build
Draft

alexandermerritt wants to merge 3 commits into
edera/mainlinefrom
alexm/ci-build

Conversation

@alexandermerritt

Copy link
Copy Markdown

A change that breaks the kernel build is currently found by the nightly rebase, after it has merged. This builds the kernel when a change is proposed. Part of ENG-317.

  • kconfig job: checks that the Edera options survive Kconfig resolution, without compiling, on x86_64 and arm64.
  • zone job: builds the zone kernel from the linux-kernel-oci config on x86_64 and arm64, without debug info.
  • Required checks: neither job has a path filter, so both can be made required.

The arm64 build has not run anywhere yet, so this PR is its first test. The workflow is only on edera/mainline; edera/6.18-lts needs it separately.

A Kconfig dependency the series no longer satisfies shows up before
any compiling, so a pull request check can report it without paying
for a build. --config-only stops after the required options are
confirmed enabled. Without it the script builds vmlinux as before.
The nightly builds the host config, but the zone kernel every zone
boots is only built by the weekly image build in linux-kernel-oci.

Merge zone.config from linux-kernel-oci over defconfig, as it does,
and build the boot image and the modules it publishes. Debug info is
left out, as it is most of the cost of a build.
Until now a change that breaks the build was found by the nightly
rebase, after it had merged.

Add a kconfig job that checks the Edera options survive Kconfig
resolution, without compiling, and a zone job that builds the zone
kernel. Both run for x86_64 and arm64 on pull requests and pushes to
edera/** branches, with no path filter so they can be required checks.
@alexandermerritt

Copy link
Copy Markdown
Author

build still takes 22min... too much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant