Setup Cachix workflow

main
Carsten Kragelund 2023-05-07 19:20:04 +02:00
parent b0ee28f2ab
commit ea57862bf4
Signed by: nyx
GPG Key ID: CADDADEEC9F753C0
1 changed files with 5 additions and 4 deletions

@ -9,7 +9,7 @@ on:
# rebuild everyday at 2:51 # rebuild everyday at 2:51
# TIP: Choose a random time here so not all repositories are build at once: # TIP: Choose a random time here so not all repositories are build at once:
# https://www.random.org/clock-times/?num=1&earliest=01%3A00&latest=08%3A00&interval=5&format=html&rnd=new # https://www.random.org/clock-times/?num=1&earliest=01%3A00&latest=08%3A00&interval=5&format=html&rnd=new
- cron: '51 2 * * *' - cron: '50 1 * * *'
jobs: jobs:
tests: tests:
strategy: strategy:
@ -20,7 +20,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:
- <YOUR_REPO_NAME> - sanctureplicum
# 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.
# #
@ -32,11 +32,12 @@ jobs:
# Github found at # Github found at
# https://github.com/<your_githubname>/nur-packages/settings/secrets # https://github.com/<your_githubname>/nur-packages/settings/secrets
cachixName: cachixName:
- <YOUR_CACHIX_NAME> - sanctureplicum
nixPath: nixPath:
- nixpkgs=channel:nixos-unstable - nixpkgs=channel:nixos-unstable
- nixpkgs=channel:nixpkgs-unstable - nixpkgs=channel:nixpkgs-unstable
- nixpkgs=channel:nixos-22.11 # FIXME: Gitea on stable is using different patches.
# - nixpkgs=channel:nixos-22.11
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repository - name: Checkout repository