Skip to content

Commit c313270

Browse files
committed
fix
1 parent ca723a7 commit c313270

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

.github/workflows/nix-action.yml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ jobs:
1919
uses: cachix/install-nix-action@v12
2020
with:
2121
nix_path: nixpkgs=channel:nixpkgs-unstable
22+
- name: Cachix setup
23+
uses: cachix/cachix-action@v8
24+
with:
25+
# Name of a cachix cache to pull/substitute
26+
name: math-comp
27+
extraPullNames:
28+
- coq
29+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
2230
- name: Cache Nix Store
2331
uses: actions/[email protected]
2432
id: cache-nix
@@ -37,7 +45,7 @@ jobs:
3745
- name: Build
3846
run: nix-build --arg ci true --arg ci-step 0
3947
- name: Compute Closure
40-
run: nix path-info -r | tee closure.txt
48+
run: nix-build --arg ci true --arg ci-step 0 | xargs nix path-info -r | tee closure.txt
4149
- name: Export Nix Store
4250
run: xargs --arg-file=closure.txt nix-store --export > nix-store.nar
4351

@@ -50,6 +58,14 @@ jobs:
5058
uses: cachix/install-nix-action@v12
5159
with:
5260
nix_path: nixpkgs=channel:nixpkgs-unstable
61+
- name: Cachix setup
62+
uses: cachix/cachix-action@v8
63+
with:
64+
# Name of a cachix cache to pull/substitute
65+
name: math-comp
66+
extraPullNames:
67+
- coq
68+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
5369
- name: Cache Nix Store
5470
uses: actions/[email protected]
5571
id: cache-nix
@@ -68,7 +84,7 @@ jobs:
6884
- name: Build
6985
run: nix-build --arg ci true --arg ci-step 1
7086
- name: Compute Closure
71-
run: nix path-info -r | tee closure.txt
87+
run: nix-build --arg ci true --arg ci-step 1 | xargs nix path-info -r | tee closure.txt
7288
- name: Export Nix Store
7389
run: xargs --arg-file=closure.txt nix-store --export > nix-store.nar
7490

@@ -81,6 +97,14 @@ jobs:
8197
uses: cachix/install-nix-action@v12
8298
with:
8399
nix_path: nixpkgs=channel:nixpkgs-unstable
100+
- name: Cachix setup
101+
uses: cachix/cachix-action@v8
102+
with:
103+
# Name of a cachix cache to pull/substitute
104+
name: math-comp
105+
extraPullNames:
106+
- coq
107+
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
84108
- name: Cache Nix Store
85109
uses: actions/[email protected]
86110
id: cache-nix
@@ -97,8 +121,8 @@ jobs:
97121
with:
98122
fetch-depth: 0
99123
- name: Build
100-
run: nix-build --arg ci true --arg ci-step 1
124+
run: nix-build --arg ci true --arg ci-step 2
101125
- name: Compute Closure
102-
run: nix path-info -r | tee closure.txt
126+
run: nix-build --arg ci true --arg ci-step 2 | xargs nix path-info -r | tee closure.txt
103127
- name: Export Nix Store
104128
run: xargs --arg-file=closure.txt nix-store --export > nix-store.nar

meta.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ dependencies:
6868
description: |-
6969
[Coq elpi](https://github.com/LPCIC/coq-elpi)
7070
71+
cachix:
72+
name: math-comp
73+
extraPullNames: coq
74+
token: CACHIX_AUTH_TOKEN
75+
7176
make_install_flags: "VFILES=structures.v"
7277

7378
documentation: |-

0 commit comments

Comments
 (0)