name: "nix build check" on: [pull_request] jobs: nix-build: runs-on: ubuntu-24.04 continue-on-error: true steps: - uses: actions/checkout@v4 - uses: cachix/install-nix-action@v30 with: nix_path: nixpkgs=channel:nixos-unstable - name: Check flake evaluation id: eval run: | if ! nix eval .#packages.x86_64-linux.handy.drvPath 2>eval_err.log; then echo "failed=true" >> "$GITHUB_OUTPUT" cat eval_err.log fi - name: Hint on evaluation failure if: steps.eval.outputs.failed == 'true' run: | echo "" echo "::warning::flake.nix evaluation failed — likely outdated outputHashes or bunDeps hash." echo "" echo "┌─────────────────────────────────────────────────────────────────┐" echo "│ To fix, run on NixOS, Ubuntu/Debian, macOS with nix installed: │" echo "│ │" echo "│ ./scripts/update-nix-hashes.sh │" echo "│ │" echo "│ The script will update version keys and hashes in flake.nix │" echo "│ automatically. Commit the resulting changes. │" echo "└─────────────────────────────────────────────────────────────────┘" echo "" cat eval_err.log exit 1