stash/.github/workflows/nix-cache.yaml
NotAShelf 7857dc2d2d
ci: tag releases automatically
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964dc061848bfbda520a4e311c3f9558557
2025-09-19 11:25:58 +03:00

29 lines
611 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@v16
with:
name: nyx
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: "Build with Nix"
run: nix build