mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-31 04:01:56 -07:00
31 lines
1.0 KiB
YAML
31 lines
1.0 KiB
YAML
name: Nix
|
|
|
|
on: [push, pull_request, workflow_dispatch]
|
|
|
|
jobs:
|
|
update-inputs:
|
|
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
|
|
uses: ./.github/workflows/nix-update-inputs.yml
|
|
secrets: inherit
|
|
|
|
hyprland:
|
|
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork)
|
|
uses: ./.github/workflows/nix.yml
|
|
secrets: inherit
|
|
with:
|
|
command: nix build 'github:hyprwm/Hyprland?ref=${{ github.ref }}' -L --extra-substituters "https://hyprland.cachix.org"
|
|
|
|
xdph:
|
|
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork)
|
|
needs: hyprland
|
|
uses: ./.github/workflows/nix.yml
|
|
secrets: inherit
|
|
with:
|
|
command: nix build 'github:hyprwm/Hyprland?ref=${{ github.ref }}#xdg-desktop-portal-hyprland' -L --extra-substituters "https://hyprland.cachix.org"
|
|
|
|
test:
|
|
if: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork)
|
|
needs: hyprland
|
|
uses: ./.github/workflows/nix-test.yml
|
|
secrets: inherit
|