From c68cc7b926cf2d24c1e7b6c2ce13495367d80736 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Tue, 3 Jan 2023 16:56:41 +0200 Subject: [PATCH] CI: add Nix build --- .github/workflows/nix-build.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/nix-build.yaml diff --git a/.github/workflows/nix-build.yaml b/.github/workflows/nix-build.yaml new file mode 100644 index 0000000..adf9ed2 --- /dev/null +++ b/.github/workflows/nix-build.yaml @@ -0,0 +1,25 @@ +name: Build Hyprpaper (Nix) + +on: [push, pull_request, workflow_dispatch] +jobs: + nix: + name: "Build" + runs-on: ubuntu-latest + steps: + - name: Clone repository + uses: actions/checkout@v3 + with: + submodules: recursive + - name: Install nix + uses: cachix/install-nix-action@v18 + with: + install_url: https://nixos.org/nix/install + extra_nix_config: | + auto-optimise-store = true + experimental-features = nix-command flakes + - uses: cachix/cachix-action@v12 + with: + name: hyprland + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - name: Build Hyprpaper with default settings + run: nix build --print-build-logs