mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-03-13 22:12:54 +03:00
nix: reduce bun install CI stalls
This commit is contained in:
2
.github/workflows/nix-build.yml
vendored
2
.github/workflows/nix-build.yml
vendored
@@ -24,7 +24,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 25
|
timeout-minutes: 45
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
14
flake.nix
14
flake.nix
@@ -49,6 +49,20 @@
|
|||||||
bunNix = ./bun.nix;
|
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
|
# Let the bun2nix hook handle dependency installation via the
|
||||||
# pre-fetched cache, but skip its default build/check/install
|
# pre-fetched cache, but skip its default build/check/install
|
||||||
# phases since we have custom ones.
|
# phases since we have custom ones.
|
||||||
|
|||||||
Reference in New Issue
Block a user