github actions: better defaults
in case someone forgets to update those
This commit is contained in:
parent
7f2bf90721
commit
52d63e8b8e
1 changed files with 4 additions and 3 deletions
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
||||||
# The repo name as used in
|
# The repo name as used in
|
||||||
# https://github.com/nix-community/NUR/blob/master/repos.json
|
# https://github.com/nix-community/NUR/blob/master/repos.json
|
||||||
nurRepo:
|
nurRepo:
|
||||||
- mic92
|
- <YOUR_REPO_NAME>
|
||||||
# Set this to cache your build results in cachix for faster builds
|
# Set this to cache your build results in cachix for faster builds
|
||||||
# in CI and for everyone who uses your cache.
|
# in CI and for everyone who uses your cache.
|
||||||
#
|
#
|
||||||
|
@ -27,7 +27,7 @@ jobs:
|
||||||
# For this to work, you also need to set the CACHIX_SIGNING_KEY secret
|
# For this to work, you also need to set the CACHIX_SIGNING_KEY secret
|
||||||
# in your repository settings in Github found at https://github.com/<your_githubname>/nur-packages/settings/secrets
|
# in your repository settings in Github found at https://github.com/<your_githubname>/nur-packages/settings/secrets
|
||||||
cachixName:
|
cachixName:
|
||||||
-
|
- <YOUR_CACHIX_NAME>
|
||||||
nixPath:
|
nixPath:
|
||||||
- nixpkgs=channel:nixos-unstable
|
- nixpkgs=channel:nixos-unstable
|
||||||
- nixpkgs=channel:nixpkgs-unstable
|
- nixpkgs=channel:nixpkgs-unstable
|
||||||
|
@ -44,7 +44,7 @@ jobs:
|
||||||
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
|
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
|
||||||
- name: Setup cachix
|
- name: Setup cachix
|
||||||
uses: cachix/cachix-action@v6
|
uses: cachix/cachix-action@v6
|
||||||
if: ${{ matrix.cachixName != '' }}
|
if: ${{ matrix.cachixName != '<YOUR_CACHIX_NAME>' }}
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.cachixName }}
|
name: ${{ matrix.cachixName }}
|
||||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||||
|
@ -52,4 +52,5 @@ jobs:
|
||||||
# TODO switch to default nixpkgs channel once nix-build-uncached 1.0.0 is in stable
|
# TODO switch to default nixpkgs channel once nix-build-uncached 1.0.0 is in stable
|
||||||
run: nix run -I 'nixpkgs=channel:nixos-unstable' nixpkgs.nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs
|
run: nix run -I 'nixpkgs=channel:nixos-unstable' nixpkgs.nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs
|
||||||
- name: Trigger NUR update
|
- name: Trigger NUR update
|
||||||
|
if: ${{ matrix.nurRepo != '<YOUR_REPO_NAME>' }}
|
||||||
run: curl -XPOST "https://nur-update.herokuapp.com/update?repo=${{ matrix.nurRepo }}"
|
run: curl -XPOST "https://nur-update.herokuapp.com/update?repo=${{ matrix.nurRepo }}"
|
||||||
|
|
Loading…
Reference in a new issue