nix: add Gh workflow for building Flake packages

Important if `status-go` is consume the Nix Flake.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2025-10-15 18:29:10 +02:00
parent 87d5716ac6
commit c1e47fd449
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4

25
.github/workflows/nix-builds.yml vendored Normal file
View File

@ -0,0 +1,25 @@
---
name: ci / nix-builds
on:
pull_request:
branches: [master]
jobs:
build:
name: Build Nix Flake packages
runs-on: [self-hosted, Linux]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build library
shell: bash
run: |
nix build '.?submodules=1#libsds' \
--print-out-paths --accept-flake-config
- name: Build Android library
shell: bash
run: |
nix build '.?submodules=1#libsds-android-arm64' \
--print-out-paths --accept-flake-config