Skip to content

Lightpanda: the headless browser designed for AI and automation

add nix build workflow

Muki Kiboigo23c1668f7bc4
diff --git a/.github/workflows/nix-build.yml b/.github/workflows/nix-build.yml
new file mode 100644
index 000000000..e8d2901f4
--- /dev/null
+++ b/.github/workflows/nix-build.yml
@@ -0,0 +1,37 @@
+name: nix-build
+
+# Builds .#lightpanda natively on every supported platform, every night or
+# on demand from the Actions tab. Not run on PRs: the macOS runners are
+# slow/costly, and most changes don't touch anything platform-specific.
+
+on:
+ schedule:
+ - cron: "5 0 * * *"
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+jobs:
+ build:
+ name: nix build (${{ matrix.system }})
+
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - os: ubuntu-latest
+ system: x86_64-linux
+ - os: ubuntu-24.04-arm
+ system: aarch64-linux
+ - os: macos-13
+ system: x86_64-darwin
+ - os: macos-latest
+ system: aarch64-darwin
+
+ runs-on: ${{ matrix.os }}
+ timeout-minutes: 60
+
+ steps:
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
+ - uses: DeterminateSystems/nix-installer-action@main
+ - run: nix build .#lightpanda -L
diff --git a/.github/workflows/nix.yml b/.github/workflows/nix-deps.yml
similarity index 99%
rename from .github/workflows/nix.yml
rename to .github/workflows/nix-deps.yml
index c1c5006b2..3f7b7d32b 100644
--- a/.github/workflows/nix.yml
+++ b/.github/workflows/nix-deps.yml
@@ -1,4 +1,4 @@
-name: nix
+name: nix-deps
# Checks the flake, then regenerates nix/v8-deps.nix (hashes for the
# prebuilt V8 archives pinned in .github/actions/install/action.yml) and