mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 17:45:59 +01:00
CI: clarify Nix CI jobs; disable on forked repositories
This commit is contained in:
parent
838ed87d6f
commit
10d7219807
3 changed files with 7 additions and 4 deletions
4
.github/workflows/nix-build.yml
vendored
4
.github/workflows/nix-build.yml
vendored
|
@ -1,3 +1,5 @@
|
||||||
|
name: Nix (Build)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
secrets:
|
secrets:
|
||||||
|
@ -25,6 +27,6 @@ jobs:
|
||||||
- uses: cachix/cachix-action@v15
|
- uses: cachix/cachix-action@v15
|
||||||
with:
|
with:
|
||||||
name: hyprland
|
name: hyprland
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
|
||||||
- run: nix build '.?submodules=1#${{ matrix.package }}' -L --extra-substituters "https://hyprland.cachix.org"
|
- run: nix build '.?submodules=1#${{ matrix.package }}' -L --extra-substituters "https://hyprland.cachix.org"
|
||||||
|
|
4
.github/workflows/nix-ci.yml
vendored
4
.github/workflows/nix-ci.yml
vendored
|
@ -1,10 +1,10 @@
|
||||||
name: Nix
|
name: Nix (CI)
|
||||||
|
|
||||||
on: [push, pull_request, workflow_dispatch]
|
on: [push, pull_request, workflow_dispatch]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-inputs:
|
update-inputs:
|
||||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
|
||||||
uses: ./.github/workflows/nix-update-inputs.yml
|
uses: ./.github/workflows/nix-update-inputs.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
|
|
3
.github/workflows/nix-update-inputs.yml
vendored
3
.github/workflows/nix-update-inputs.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Nix
|
name: Nix (Update Inputs)
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
@ -8,6 +8,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update:
|
update:
|
||||||
|
if: github.repository == 'hyprwm/Hyprland'
|
||||||
name: inputs
|
name: inputs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in a new issue