Skip to content

ci: nix flake check on both consumed platforms, cached via FlakeHub - #7

Merged
kriswill merged 1 commit into
mainfrom
flakehub-cache
Jul 12, 2026
Merged

ci: nix flake check on both consumed platforms, cached via FlakeHub#7
kriswill merged 1 commit into
mainfrom
flakehub-cache

Conversation

@kriswill

Copy link
Copy Markdown
Owner

Adds the repo's first Nix CI: nix flake check -L on ubuntu-latest and macos-latest (arm64) — the two platforms kriswill/dotfiles consumes okf on — with flakehub-cache-action pushing every build to the account's private FlakeHub cache.

Payoff: dotfiles CI (which builds okf as a flake input) and all logged-in machines pull okf prebuilt instead of compiling the bun binary locally.

  • Auth = OIDC JWT (id-token: write); the cache is account-scoped — no secret, no registration.
  • Fork PRs get no id-token: build runs, cache push skipped.
  • release.yml untouched.

Part of wiring FlakeHub cache across kriswill/* repos (see kriswill/dotfiles#35).

New workflow: nix flake check -L (builds the okf package + unit-test
check) on ubuntu and arm64 macOS — the two platforms kriswill/dotfiles
consumes okf on — with flakehub-cache-action pushing every build to the
account's private FlakeHub cache. dotfiles CI and the machines then pull
okf prebuilt instead of compiling it.

Auth is the workflow's OIDC JWT (id-token: write): account-scoped cache,
no secrets, no per-repo registration. Fork PRs lack the token and build
without the push.
@kriswill
kriswill merged commit a052dea into main Jul 12, 2026
3 checks passed
@kriswill
kriswill deleted the flakehub-cache branch July 12, 2026 04:27
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