mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-13 14:33:47 +00:00
workflows: addition of nix cache workflow
This commit is contained in:
parent
d2996ba521
commit
464daf3d71
1 changed files with 19 additions and 0 deletions
19
.github/workflows/nix-cache.yaml
vendored
Normal file
19
.github/workflows/nix-cache.yaml
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
name: "Populate cachix cache"
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
paths: [ 'src/**.rs', 'Cargo.toml', 'Cargo.lock', 'nix/package.nix' ]
|
||||||
|
jobs:
|
||||||
|
populate-cache:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: cachix/install-nix-action@v25
|
||||||
|
with:
|
||||||
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- uses: cachix/cachix-action@v14
|
||||||
|
with:
|
||||||
|
name: nyx
|
||||||
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
|
- run: nix build
|
||||||
Loading…
Add table
Add a link
Reference in a new issue