stash/.github/workflows/nix-cache.yaml
dependabot[bot] 909bb53afa
build(deps): bump cachix/cachix-action from 16 to 17
Bumps [cachix/cachix-action](https://github.com/cachix/cachix-action) from 16 to 17.
- [Release notes](https://github.com/cachix/cachix-action/releases)
- [Commits](https://github.com/cachix/cachix-action/compare/v16...v17)

---
updated-dependencies:
- dependency-name: cachix/cachix-action
  dependency-version: '17'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-19 14:55:19 +00: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@v6
- uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v17
with:
name: nyx
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: "Build with Nix"
run: nix build