git.fiddlerwoaroof.com
Browse code

fix(ci): fix yaml

Edward Langley authored on 27/03/2022 20:57:31
Showing 1 changed files
... ...
@@ -20,33 +20,34 @@ jobs:
20 20
     # The type of runner that the job will run on
21 21
     runs-on: ubuntu-latest
22 22
 
23
-    ## attempt to cache nix store
24
-    - run: |
25
-        # Create with liberal rights, otherwise cache action will complain
26
-        # about permission errors.
27
-        sudo mkdir -p /nix/store
28
-        sudo chmod -R 777 /nix
29
-
30
-    - name: Cache nix env take N+1
31
-      uses: actions/cache@v2
32
-      with:
33
-        path: |
34
-          # See https://github.com/actions/cache/pull/726
35
-          /nix/store/**
36
-          # Missing something?
37
-          /nix/var/nix/*/*
38
-          /nix/var/nix/db/*
39
-          /nix/var/nix/db/*/**
40
-          !/nix/var/nix/daemon-socket/socket
41
-          !/nix/var/nix/userpool/*
42
-          !/nix/var/nix/gc.lock
43
-          !/nix/var/nix/db/big-lock
44
-          !/nix/var/nix/db/reserved
45
-        key: ${{ runner.os }}-nix-store
46
-
47 23
     steps:
48 24
       # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
49 25
       - uses: actions/checkout@v2
26
+
27
+      # attempt to cache nix store
28
+      - run: |
29
+          # Create with liberal rights, otherwise cache action will complain
30
+          # about permission errors.
31
+          sudo mkdir -p /nix/store
32
+          sudo chmod -R 777 /nix
33
+
34
+      - name: Cache nix env take N+1
35
+        uses: actions/cache@v2
36
+        with:
37
+          path: |
38
+            # See https://github.com/actions/cache/pull/726
39
+            /nix/store/**
40
+            # Missing something?
41
+            /nix/var/nix/*/*
42
+            /nix/var/nix/db/*
43
+            /nix/var/nix/db/*/**
44
+            !/nix/var/nix/daemon-socket/socket
45
+            !/nix/var/nix/userpool/*
46
+            !/nix/var/nix/gc.lock
47
+            !/nix/var/nix/db/big-lock
48
+            !/nix/var/nix/db/reserved
49
+          key: ${{ runner.os }}-nix-store
50
+
50 51
       - uses: cachix/install-nix-action@v15
51 52
         with:
52 53
           extra_nix_config: |