CI: add Nix build

This commit is contained in:
Mihai Fufezan 2023-01-03 16:56:41 +02:00
parent 885212dedc
commit c68cc7b926
No known key found for this signature in database
GPG key ID: 5899325F2F120900

25
.github/workflows/nix-build.yaml vendored Normal file
View file

@ -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