-
-
Notifications
You must be signed in to change notification settings - Fork 110
37 lines (29 loc) · 725 Bytes
/
nix.yml
File metadata and controls
37 lines (29 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Refresh Nix Cache
on:
push:
branches: ['main']
paths:
- flake.lock
- Cargo.lock
workflow_dispatch:
permissions: {}
jobs:
nix-cache:
name: Refresh Nix Cache
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install Nix
uses: nixbuild/nix-quick-install-action@v34
- name: Build Wild
run: |
nix build -L --show-trace
- name: Cache Nix store
uses: nix-community/cache-nix-action/save@v7
id: cache
with:
primary-key: ${{ runner.os }}-${{ hashFiles( 'flake.lock', 'Cargo.lock' ) }}