stash/.github/workflows/nix-cache.yaml
2025-08-20 12:29:43 +03:00

28 lines
580 B
YAML

name: "Populate cachix cache"
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths: [ 'src/**.rs', 'Cargo.toml', 'Cargo.lock', 'nix/package.nix' ]
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@v14
with:
name: nyx
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build