mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-03-24 14:47:52 +03:00
fix: regenerate bun.nix in CI to prevent stale dependency errors
The Nix build has been failing since v3.9.6 because bun.nix fell out of sync with bun.lock. During the sandboxed build bun install cannot fetch missing packages, causing ConnectionRefused errors. - Add bun2nix regeneration step before nix build in CI - Trigger workflow on bun.lock and package.json changes - Update flake.nix version from 3.9.6 to 3.14.1
This commit is contained in:
7
.github/workflows/nix-build.yml
vendored
7
.github/workflows/nix-build.yml
vendored
@@ -9,6 +9,8 @@ on:
|
||||
- 'flake.nix'
|
||||
- 'flake.lock'
|
||||
- 'bun.nix'
|
||||
- 'bun.lock'
|
||||
- 'package.json'
|
||||
- '.github/workflows/nix-build.yml'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
@@ -16,6 +18,8 @@ on:
|
||||
- 'flake.nix'
|
||||
- 'flake.lock'
|
||||
- 'bun.nix'
|
||||
- 'bun.lock'
|
||||
- 'package.json'
|
||||
- '.github/workflows/nix-build.yml'
|
||||
|
||||
permissions:
|
||||
@@ -39,6 +43,9 @@ jobs:
|
||||
- name: Setup Nix Cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
|
||||
- name: Regenerate bun.nix from bun.lock
|
||||
run: nix run github:nix-community/bun2nix -- -o bun.nix --accept-flake-config
|
||||
|
||||
- name: Check flake
|
||||
run: nix flake check --accept-flake-config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user