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

27 lines
797 B
YAML
Raw Permalink Normal View History

2022-09-02 20:36:27 +02:00
name: Build Hyprpicker (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-05-03 22:40:19 +02:00
uses: cachix/install-nix-action@v20
2022-09-02 20:36:27 +02:00
with:
2023-01-03 15:57:33 +01:00
install_url: https://nixos.org/nix/install
2022-09-02 20:36:27 +02:00
extra_nix_config: |
auto-optimise-store = true
2023-05-03 22:40:19 +02:00
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
2022-09-02 20:36:27 +02:00
experimental-features = nix-command flakes
2023-01-03 15:52:33 +01:00
- uses: cachix/cachix-action@v12
with:
name: hyprland
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
2022-09-02 20:36:27 +02:00
- name: Build Hyprpicker with default settings
2023-05-03 22:40:19 +02:00
run: nix build --print-build-logs --accept-flake-config