From cda8f194abebe7261f5c535d800d32bca25da37f Mon Sep 17 00:00:00 2001 From: Alexander Medvedev Date: Mon, 10 Aug 2026 22:17:53 +0200 Subject: [PATCH] feat(ci): add nix CI --- .github/workflows/nix.yml | 41 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/nix.yml diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml new file mode 100644 index 000000000..2befa7b05 --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,41 @@ +name: Nix Flake + +on: + push: + paths: + - "**.nix" + - "flake.lock" + - "Cargo.toml" + - "Cargo.lock" + - "crates/**" + - ".github/workflows/nix.yml" + pull_request: + paths: + - "**.nix" + - "flake.lock" + - "Cargo.toml" + - "Cargo.lock" + - "crates/**" + - ".github/workflows/nix.yml" + workflow_dispatch: + +jobs: + check-flake: + name: Validate Flake & Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v7 + with: + submodules: recursive + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v16 + + - name: Magic Nix Cache + uses: DeterminateSystems/magic-nix-cache-action@v9 + + - name: Check flake formatting and evaluation + run: nix flake check + + - name: Build default package + run: nix build .#default