Skip to content

About

Builds mklinux deb and rpm packages on GitHub Actions

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

mklinux-packages

Builds the deb and rpm packages of an mklinux release on GitHub Actions, for x86_64 and arm64, and attaches them to the release page. It lives apart from the kernel repo so that the kernel tree carries no CI.

Building a release

Once the tag is pushed and its release page exists in multikernel/linux:

gh workflow run build.yml --repo multikernel/mklinux-packages -f tag=v7.0-mk5

Add -f publish=false to only build; the packages are then kept as workflow artifacts. A published run uploads the packages and a SHA256SUMS file to the release and replaces the ## Install section of its notes.

One-time setup

The publish job needs a secret named LINUX_RELEASE_TOKEN: a fine-grained personal access token limited to multikernel/linux with read and write access to Contents.

gh secret set LINUX_RELEASE_TOKEN --repo multikernel/mklinux-packages

The repo has to be public for the hosted runners to be free.

Keeping the LTS branch on stable

lts.yml runs daily. When the stable series of the LTS branch has a release the branch does not carry, it:

  1. merges the stable tag (scripts/lts-merge.sh) and pushes the result to <branch>-next in multikernel/linux;
  2. builds that commit for x86_64 and arm64 with the release configs and boots each kernel under QEMU (scripts/boot-test.sh);
  3. fast-forwards the LTS branch to it when both pass.

A conflict or a failed build opens an issue here, and the schedule leaves that tag alone until the issue is closed. It never tags a release; that stays a manual step.

Setup, on top of LINUX_RELEASE_TOKEN:

gh variable set LTS_BRANCH --repo multikernel/mklinux-packages --body linux-7.4.y-mk

The branch has to exist in multikernel/linux and be named linux-X.Y.y-mk; the series is read from the name. Without the variable the workflow does nothing. To merge a given tag, or to retry at once:

gh workflow run lts.yml --repo multikernel/mklinux-packages [-f tag=v7.4.3]

After a conflict, do the merge by hand, push it to <branch>-next and send that commit through the same build, boot test and fast-forward:

gh workflow run lts.yml --repo multikernel/mklinux-packages -f sha=<commit>

GitHub turns the schedule off after 60 days without a commit in this repo.

Configs

  • configs/x86_64.config, configs/arm64.config: the generic kernel configs of Ubuntu 26.04, unmodified. scripts/update-base-configs.sh refreshes them.
  • configs/mklinux.config, configs/mklinux-<arch>.config: what mklinux changes on top. scripts/make-config.sh merges them and fails when an option does not survive olddefconfig.

Debug info is off because a build with DWARF does not fit on a hosted runner's disk. There is therefore no -dbg package and no BTF.

Running the steps by hand

scripts/make-config.sh x86_64 /path/to/linux
scripts/build-packages.sh /path/to/linux out
scripts/install-notes.sh out

About

Builds mklinux deb and rpm packages on GitHub Actions

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages