stash/.github/workflows/nix-cache.yaml
NotAShelf a59e207e76
ci: trigger Nix cache action more often
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a696463b203052b421a924fb85885fc34752b
2025-10-09 16:42:40 +03:00

29 lines
652 B
YAML

name: Build and Cache with Nix
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths: [ 'src/**.rs', 'build.rs', 'Cargo.toml', 'Cargo.lock', 'nix/package.nix', 'flake.nix', 'flake.lock' ]
permissions:
contents: read
jobs:
populate-cache:
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v5
- uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v16
with:
name: nyx
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: "Build with Nix"
run: nix build