nix: reduce bun install CI stalls

This commit is contained in:
Arunavo Ray
2026-03-06 09:41:22 +05:30
parent 8a4716bdbd
commit db783c4225
2 changed files with 15 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ permissions:
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 25
timeout-minutes: 45
steps:
- uses: actions/checkout@v4

View File

@@ -49,6 +49,20 @@
bunNix = ./bun.nix;
};
# bun2nix defaults to isolated installs on Linux, which can be
# very slow in CI for larger dependency trees and may appear stuck.
# Use hoisted linker and fail fast on lockfile drift.
bunInstallFlags = if pkgs.stdenv.hostPlatform.isDarwin then [
"--linker=hoisted"
"--backend=copyfile"
"--frozen-lockfile"
"--no-progress"
] else [
"--linker=hoisted"
"--frozen-lockfile"
"--no-progress"
];
# Let the bun2nix hook handle dependency installation via the
# pre-fetched cache, but skip its default build/check/install
# phases since we have custom ones.