-
Notifications
You must be signed in to change notification settings - Fork 20.9k
feat: add nix-eval workflow for cross-platform flake evaluation #12175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rekram1-node
merged 24 commits into
anomalyco:dev
from
jerome-benoit:feat/nix-eval-workflow
Feb 18, 2026
+95
−46
Merged
Changes from 3 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
17048f9
feat: add nix-eval workflow for cross-platform flake evaluation
jerome-benoit 9f01ba6
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit 1897f56
chore: remove path filters from nix-eval workflow
jerome-benoit b315b83
refactor: evaluate nix derivations once per iteration
jerome-benoit 06324d7
chore: add concurrency and permissions to nix-eval workflow
jerome-benoit d055acd
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit cb4a98b
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit 486aafc
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit 10f95c4
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit a34611c
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit 759ffd2
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit 54efd63
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit 4aa96e9
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit 4140c37
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit ff054ab
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit bfe129f
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit 530c293
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit 480885b
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit 19d79f0
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit fe50db0
fix: make desktop package evaluation non-blocking until #11755 is fixed
jerome-benoit 3686e75
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit e22d708
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit 1f23756
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit 6490e35
Merge branch 'dev' into feat/nix-eval-workflow
jerome-benoit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| name: nix-eval | ||
|
|
||
| on: | ||
| push: | ||
| branches: [dev] | ||
| pull_request: | ||
| branches: [dev] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| nix-eval: | ||
| runs-on: blacksmith-4vcpu-ubuntu-2404 | ||
| timeout-minutes: 15 | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Setup Nix | ||
| uses: nixbuild/nix-quick-install-action@v34 | ||
|
|
||
| - name: Evaluate flake outputs (all systems) | ||
| run: | | ||
| set -euo pipefail | ||
| nix --version | ||
|
|
||
| echo "=== Flake metadata ===" | ||
| nix flake metadata | ||
|
|
||
| echo "" | ||
| echo "=== Flake structure ===" | ||
| nix flake show --all-systems | ||
|
|
||
| SYSTEMS="x86_64-linux aarch64-linux x86_64-darwin aarch64-darwin" | ||
| PACKAGES="opencode desktop" | ||
|
|
||
| echo "" | ||
| echo "=== Evaluating all packages for all systems ===" | ||
| for system in $SYSTEMS; do | ||
| echo "" | ||
| echo "--- $system ---" | ||
| for pkg in $PACKAGES; do | ||
| printf " %s: " "$pkg" | ||
| if nix eval ".#packages.$system.$pkg.drvPath" --raw > /dev/null 2>&1; then | ||
| echo "✓" | ||
| else | ||
| echo "✗" | ||
| echo "::error::Evaluation failed for packages.$system.$pkg" | ||
| nix eval ".#packages.$system.$pkg.drvPath" --raw | ||
| exit 1 | ||
| fi | ||
| done | ||
| done | ||
|
|
||
| echo "" | ||
| echo "=== Evaluating devShells for all systems ===" | ||
| for system in $SYSTEMS; do | ||
| printf "%s: " "$system" | ||
| if nix eval ".#devShells.$system.default.drvPath" --raw > /dev/null 2>&1; then | ||
| echo "✓" | ||
| else | ||
| echo "✗" | ||
| echo "::error::Evaluation failed for devShells.$system.default" | ||
| nix eval ".#devShells.$system.default.drvPath" --raw | ||
| exit 1 | ||
| fi | ||
| done | ||
|
|
||
| echo "" | ||
| echo "=== All evaluations passed ===" | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.