Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CohenCyril committed Feb 18, 2021
1 parent ca723a7 commit c313270
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/nix-action.yml
Expand Up @@ -19,6 +19,14 @@ jobs:
uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- name: Cachix setup
uses: cachix/cachix-action@v8
with:
# Name of a cachix cache to pull/substitute
name: math-comp
extraPullNames:
- coq
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Cache Nix Store
uses: actions/cache@v2.1.4
id: cache-nix
Expand All @@ -37,7 +45,7 @@ jobs:
- name: Build
run: nix-build --arg ci true --arg ci-step 0
- name: Compute Closure
run: nix path-info -r | tee closure.txt
run: nix-build --arg ci true --arg ci-step 0 | xargs nix path-info -r | tee closure.txt
- name: Export Nix Store
run: xargs --arg-file=closure.txt nix-store --export > nix-store.nar

Expand All @@ -50,6 +58,14 @@ jobs:
uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- name: Cachix setup
uses: cachix/cachix-action@v8
with:
# Name of a cachix cache to pull/substitute
name: math-comp
extraPullNames:
- coq
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Cache Nix Store
uses: actions/cache@v2.1.4
id: cache-nix
Expand All @@ -68,7 +84,7 @@ jobs:
- name: Build
run: nix-build --arg ci true --arg ci-step 1
- name: Compute Closure
run: nix path-info -r | tee closure.txt
run: nix-build --arg ci true --arg ci-step 1 | xargs nix path-info -r | tee closure.txt
- name: Export Nix Store
run: xargs --arg-file=closure.txt nix-store --export > nix-store.nar

Expand All @@ -81,6 +97,14 @@ jobs:
uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- name: Cachix setup
uses: cachix/cachix-action@v8
with:
# Name of a cachix cache to pull/substitute
name: math-comp
extraPullNames:
- coq
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Cache Nix Store
uses: actions/cache@v2.1.4
id: cache-nix
Expand All @@ -97,8 +121,8 @@ jobs:
with:
fetch-depth: 0
- name: Build
run: nix-build --arg ci true --arg ci-step 1
run: nix-build --arg ci true --arg ci-step 2
- name: Compute Closure
run: nix path-info -r | tee closure.txt
run: nix-build --arg ci true --arg ci-step 2 | xargs nix path-info -r | tee closure.txt
- name: Export Nix Store
run: xargs --arg-file=closure.txt nix-store --export > nix-store.nar
5 changes: 5 additions & 0 deletions meta.yml
Expand Up @@ -68,6 +68,11 @@ dependencies:
description: |-
[Coq elpi](https://github.com/LPCIC/coq-elpi)
cachix:
name: math-comp
extraPullNames: coq
token: CACHIX_AUTH_TOKEN

make_install_flags: "VFILES=structures.v"

documentation: |-
Expand Down

0 comments on commit c313270

Please sign in to comment.