Skip to content

ci: build the nix job with Determinate Nix + FlakeHub cache - #17

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

ci: build the nix job with Determinate Nix + FlakeHub cache#17
kriswill merged 1 commit into
mainfrom
flakehub-cache

Conversation

@kriswill

Copy link
Copy Markdown
Owner

The nix job (nix flake check -L) now runs on Determinate Nix with flakehub-cache-action: everything it builds lands in the account's private FlakeHub cache and later runs pull it back.

  • Auth = the job's OIDC JWT (id-token: write) — the cache is account-scoped, so there's no secret and no per-repo registration.
  • Fork PRs get no id-token: the build still runs, only the cache push is skipped (warning).
  • The test job stays on plain upstream Nix deliberately — it only evals the builtins-only fixture (no builds to cache), and skipping the FlakeHub login keeps fork PRs warning-free. Comment updated to say so.
  • Both Determinate actions pinned by SHA, matching this repo's convention.

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

The nix job now pushes what it builds to the account's private FlakeHub
cache and pulls prior builds back. Auth is the job's OIDC JWT
(id-token: write) — account-scoped, no secret, no registration; fork PRs
lack the token and simply build without the push. The test job keeps
plain upstream Nix: it only evals (builtins-only fixture), so the cache
buys nothing and skipping the login keeps fork PRs warning-free.
@github-actions

Copy link
Copy Markdown
Contributor

Code Metrics Report

main (e1bc07c) #17 (030c9fb) +/-
Coverage 94.9% 94.9% 0.0%
Test Execution Time 5s 5s 0s
Details
  |                     | main (e1bc07c) | #17 (030c9fb) | +/-  |
  |---------------------|----------------|---------------|------|
  | Coverage            |          94.9% |         94.9% | 0.0% |
  |   Files             |             30 |            30 |    0 |
  |   Lines             |           3795 |          3795 |    0 |
  |   Covered           |           3603 |          3603 |    0 |
  | Test Execution Time |             5s |            5s |   0s |

Reported by octocov

@kriswill
kriswill merged commit 1b21a29 into main Jul 12, 2026
4 checks passed
@kriswill
kriswill deleted the flakehub-cache branch July 12, 2026 04:26
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