hyprpaper/.github/workflows/nix-build.yaml

27 lines
795 B
YAML
Raw Permalink Normal View History

2023-01-03 15:56:41 +01:00
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
2023-04-26 22:55:38 +02:00
uses: cachix/install-nix-action@v20
2023-01-03 15:56:41 +01:00
with:
install_url: https://nixos.org/nix/install
extra_nix_config: |
auto-optimise-store = true
2023-04-26 22:55:38 +02:00
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
2023-01-03 15:56:41 +01:00
experimental-features = nix-command flakes
- uses: cachix/cachix-action@v12
with:
name: hyprland
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build Hyprpaper with default settings
2023-04-26 22:55:38 +02:00
run: nix build --print-build-logs --accept-flake-config