From 39786a04bfb7340d239d00eab4314099f3ce46e1 Mon Sep 17 00:00:00 2001 From: Lan Tian Date: Wed, 20 May 2026 19:04:25 -0700 Subject: [PATCH] Exclude x86_64-v2 kernels from hydra build --- README.md | 17 ++++++++++++++--- flake.nix | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8003b33..9900380 100644 --- a/README.md +++ b/README.md @@ -15,33 +15,40 @@ This repo provides the following kernel variants, consistent with the [upstream └───x86_64-linux # Latest kernel, provides all LTO/CPU arch variants ├───linux-cachyos-latest + ├───linux-cachyos-latest-x86_64-v2 (no binary cache) ├───linux-cachyos-latest-x86_64-v3 ├───linux-cachyos-latest-x86_64-v4 ├───linux-cachyos-latest-zen4 ├───linux-cachyos-latest-lto + ├───linux-cachyos-latest-lto-x86_64-v2 (no binary cache) ├───linux-cachyos-latest-lto-x86_64-v3 ├───linux-cachyos-latest-lto-x86_64-v4 ├───linux-cachyos-latest-lto-zen4 # LTS kernel, provides all LTO/CPU arch variants ├───linux-cachyos-lts + ├───linux-cachyos-lts-x86_64-v2 (no binary cache) ├───linux-cachyos-lts-x86_64-v3 ├───linux-cachyos-lts-x86_64-v4 ├───linux-cachyos-lts-zen4 ├───linux-cachyos-lts-lto + ├───linux-cachyos-lts-lto-x86_64-v2 (no binary cache) ├───linux-cachyos-lts-lto-x86_64-v3 ├───linux-cachyos-lts-lto-x86_64-v4 ├───linux-cachyos-lts-lto-zen4 - # Additional CachyOS kernel variants - ├───linux-cachyos-bmq - ├───linux-cachyos-bmq-lto + # Latest kernel with BORE scheduler, all LTO/CPU arch variants ├───linux-cachyos-bore + ├───linux-cachyos-bore-x86_64-v2 (no binary cache) ├───linux-cachyos-bore-x86_64-v3 ├───linux-cachyos-bore-x86_64-v4 ├───linux-cachyos-bore-zen4 ├───linux-cachyos-bore-lto + ├───linux-cachyos-bore-lto-x86_64-v2 (no binary cache) ├───linux-cachyos-bore-lto-x86_64-v3 ├───linux-cachyos-bore-lto-x86_64-v4 ├───linux-cachyos-bore-lto-zen4 + # Additional CachyOS kernel variants + ├───linux-cachyos-bmq + ├───linux-cachyos-bmq-lto ├───linux-cachyos-deckify ├───linux-cachyos-deckify-lto ├───linux-cachyos-eevdf @@ -145,6 +152,8 @@ The two binary caches will be automatically suggested I'm running a Hydra CI to build the kernels and push them to my Attic binary cache. You can see the build status here: +Note that due to build capacity limitations, I do not build kernel variants with `x86_64-v2` CPU optimization. + To manually use my binary cache, please add the following config: ```nix @@ -158,6 +167,8 @@ To manually use my binary cache, please add the following config: This repo also has [Garnix CI](https://garnix.io) set up, and should work as long as the total build time is below the free plan threshold. +Garnix CI only builds the latest/LTO kernel variants, with/without LTO, and without any CPU specific optimizations. + [![built with garnix](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fgarnix.io%2Fapi%2Fbadges%2Fxddxdd%2Fnix-cachyos-kernel)](https://garnix.io/repo/xddxdd/nix-cachyos-kernel) > If you see "all builds failed" from Garnix, it means I ran out of free plan's build time. diff --git a/flake.nix b/flake.nix index a0ba2d1..765fc0d 100644 --- a/flake.nix +++ b/flake.nix @@ -150,7 +150,7 @@ }; hydraJobs = { - inherit (self) packages; + packages.x86_64-linux = lib.filterAttrs (n: _: !lib.hasSuffix "-v2" n) self.packages.x86_64-linux; nixosConfigurations = lib.mapAttrs (n: v: v.config.system.build.toplevel) self.nixosConfigurations; };