From a16541ab8f1f9503d406d638b85a6cadd4178a72 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Fri, 28 Jun 2024 17:25:05 +0200 Subject: [PATCH] nix: ci --- .github/workflows/nix.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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 0000000..d86192c --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,20 @@ +name: "Nix CI" + +on: [pull_request, push] + +jobs: + tests: + name: "Nix build on ${{ matrix.os }}" + runs-on: "${{ matrix.os }}-latest" + strategy: + matrix: + os: [ubuntu] + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + with: + extra-conf: | + trusted-substituters = https://gepetto.cachix.org + trusted-public-keys = gepetto.cachix.org-1:toswMl31VewC0jGkN6+gOelO2Yom0SOHzPwJMY2XiDY= + - uses: DeterminateSystems/magic-nix-cache-action@main + - run: nix build --accept-flake-config