|
11 | 11 | branches: [ master ]
|
12 | 12 |
|
13 | 13 | jobs:
|
14 |
| - nix: |
| 14 | + hb: |
15 | 15 | runs-on: ubuntu-latest
|
16 | 16 |
|
17 | 17 | steps:
|
18 |
| - - uses: actions/checkout@v2 |
19 |
| - with: |
20 |
| - fetch-depth: 0 |
21 |
| - - uses: cachix/install-nix-action@v12 |
22 |
| - - uses: cachix/cachix-action@v8 |
| 18 | + - name: Cachix install |
| 19 | + uses: cachix/install-nix-action@v12 |
| 20 | + - name: Cachix setup |
| 21 | + uses: cachix/cachix-action@v8 |
23 | 22 | with:
|
24 | 23 | name: math-comp
|
25 | 24 | extraPullNames: coq
|
26 | 25 | authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
27 |
| - - run: nix-build |
| 26 | + - name: Cache Nix Store |
| 27 | + |
| 28 | + id: cache-nix |
| 29 | + with: |
| 30 | + path: nix-store.nar |
| 31 | + key: nix-${{ runner.os }}-${{ github.sha }} |
| 32 | + restore-keys: | |
| 33 | + nix-${{ runner.os }}- |
| 34 | + - name: Import Nix Store |
| 35 | + if: steps.cache-nix.outputs.cache-hit |
| 36 | + run: nix-store --import < nix-store.nar |
| 37 | + - name: Git checkout |
| 38 | + uses: actions/checkout@v2 |
| 39 | + with: |
| 40 | + fetch-depth: 0 |
| 41 | + - name: Build |
| 42 | + run: nix-build |
| 43 | + - name: Compute Closure |
| 44 | + run: nix path-info --all | tee closure.txt |
| 45 | + - name: Export Nix Store |
| 46 | + run: xargs --arg-file=closure.txt nix-store --export > nix-store.nar |
28 | 47 |
|
29 |
| - nixci: |
| 48 | + mathcomp: |
30 | 49 | runs-on: ubuntu-latest
|
31 |
| - needs: nix |
32 |
| - |
| 50 | + needs: hb |
33 | 51 | steps:
|
34 |
| - - uses: actions/checkout@v2 |
35 |
| - with: |
36 |
| - fetch-depth: 0 |
37 |
| - - uses: cachix/install-nix-action@v12 |
38 |
| - - uses: cachix/cachix-action@v8 |
| 52 | + - name: Cachix install |
| 53 | + uses: cachix/install-nix-action@v12 |
| 54 | + - name: Cachix setup |
| 55 | + uses: cachix/cachix-action@v8 |
39 | 56 | with:
|
40 | 57 | name: math-comp
|
41 | 58 | extraPullNames: coq
|
42 | 59 | authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
43 |
| - - run: nix-build --arg ci true |
| 60 | + - name: Cache Nix Store |
| 61 | + |
| 62 | + id: cache-nix |
| 63 | + with: |
| 64 | + path: nix-store.nar |
| 65 | + key: nix-${{ runner.os }}-${{ github.sha }} |
| 66 | + restore-keys: | |
| 67 | + nix-${{ runner.os }}- |
| 68 | + - name: Import Nix Store |
| 69 | + if: steps.cache-nix.outputs.cache-hit |
| 70 | + run: nix-store --import < nix-store.nar |
| 71 | + - name: Git checkout |
| 72 | + uses: actions/checkout@v2 |
| 73 | + with: |
| 74 | + fetch-depth: 0 |
| 75 | + - name: Build |
| 76 | + run: nix-build --arg ci true |
| 77 | + - name: Compute Closure |
| 78 | + run: nix path-info --all | tee closure.txt |
| 79 | + - name: Export Nix Store |
| 80 | + run: xargs --arg-file=closure.txt nix-store --export > nix-store.nar |
0 commit comments