From 0693f9398ab693d89c9a0aa3b3d062dd61b7a60e Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Sun, 9 Jun 2024 00:15:34 +0300 Subject: [PATCH] CI: add nix --- .github/workflows/nix.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..0f0b75d --- /dev/null +++ b/.github/workflows/nix.yml @@ -0,0 +1,27 @@ +name: Build & Test + +on: [push, pull_request, workflow_dispatch] +jobs: + nix: + strategy: + matrix: + package: + - hyprutils + - hyprutils-with-tests + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: cachix/install-nix-action@v26 + - uses: DeterminateSystems/magic-nix-cache-action@main + + # not needed (yet) + # - uses: cachix/cachix-action@v12 + # with: + # name: hyprland + # authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + + - name: Build & Test + run: nix build .#${{ matrix.package }} --print-build-logs +