Skip to content

[ci] Push doris to lowRISC's public Nix cache on merge to main - #1

Open
machshev wants to merge 1 commit into
lowRISC:mainfrom
machshev:nix-cache
Open

machshev wants to merge 1 commit into
lowRISC:mainfrom
machshev:nix-cache

Conversation

@machshev

@machshev machshev commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

Pushes the doris package to lowRISC's public Nix cache (nix-cache.lowrisc.org/public) on every merge to main. Flakes that take github:lowRISC/doris as an input then download doris instead of building it from source.

Changes

  • A new Nix cache workflow runs on push to main (and by hand). It builds .#packages.<system>.default for x86_64-linux and aarch64-linux, then runs attic push public result.
  • It gets its push token the way lowrisc-nix's CI does: a short-lived token from lowrisc/ci-actions/ca-token, based on the job's GitHub OIDC identity, so no secret is stored. Forks skip the job.
  • aarch64-darwin is left out for now: CI has never built doris on macOS.

Before merging

The CA endpoint (https://ca.lowrisc.org/api/nix-caches/public/token) has to trust lowRISC/doris's OIDC tokens. Until it does, the token step fails. I haven't been able to check its policy.

Testing

  • actionlint passes on the workflow.
  • nix flake check passes.
  • The job only runs on lowRISC/doris after a merge, so this PR doesn't run it.

🤖 Generated with Claude Code

Build the doris package for x86_64-linux and aarch64-linux on every push
to main and push it to nix-cache.lowrisc.org/public, so flakes that take
doris as an input download it rather than building it. The push
authenticates with a short-lived token from lowRISC's CA, which trusts
the repository's GitHub OIDC identity, so no secret is stored. Forks
skip the job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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