Nix flake support - #3
Open
JL2718 wants to merge 8 commits into
Open
Conversation
2524068379
added a commit
to 2524068379/llama.cpp-cuda
that referenced
this pull request
Aug 25, 2026
… push Addresses architecture review round 4: ai-dock#1 (HIGH) Tag dedup was broken — actions/checkout@v4 fetches no tags by default, so 'git tag | grep' was always empty and every cron run would rebuild. Fixed by switching check-branch dedup from local git tags to the GitHub Releases API (gate now agrees with release creation). ai-dock#3 (MEDIUM) Orphaned-tag gap — if tag was pushed but release creation failed, the old git-tag dedup would block retries forever. Releases-API dedup makes the check self-healing: a tag without a release triggers a rebuild on the next run. Mirrors scripts/check-releases.sh exactly. ai-dock#2 (MEDIUM) force_build crashed at tag push when the tag already existed on remote (non-fast-forward). Now uses 'git tag -f' + 'git push --force'. ai-dock#4 (LOW) Unauthenticated upstream tip lookup moved to use GITHUB_TOKEN (60 -> 5000 req/h). Both API calls now send Authorization headers. Also: release job checkout gets fetch-tags: true (belt-and-suspenders).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds:
Why:
Loading the ggml-org/llama.cpp flake for a CUDA user requires a full compile. This is much faster.
Testing:
nix develop github:jl2718/llama.cpp-cuda/feature/nixworksNotes:
if you don't want to pollute your 'main' with commits for every release, the update action works on whatever branch it is given, so maybe a 'nix' branch.