@@ -29,7 +29,9 @@ jobs:
2929 submodules: recursive
3030
3131 - name: Common setup
32− uses: ./.github/actions/common_setup
32+ uses: ./.github/actions/nix_cache
33+ with:
34+ key: Linux-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
3335
3436 - name: Build Linux static binary
3537 shell: bash
@@ -80,6 +82,9 @@ jobs:
8082 skopeo copy docker-archive:$(nix-build -A compaRESTGithubAction -j auto) docker://typeable/comparest-github-action:${{ github.event.payload.name }}
8183 skopeo copy docker-archive:$(nix-build -A compaRESTImage -j auto) docker://typeable/comparest:${{ github.event.payload.name }}
8284
85+ - name: Cache Nix post
86+ uses: ./.github/actions/nix_cache_post
87+
8388 macOS:
8489 runs-on: macos-latest
8590 steps:
@@ -89,6 +94,8 @@ jobs:
8994
9095 - name: Common setup
9196 uses: ./.github/actions/common_setup
97+ with:
98+ key: macOS-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
9299
93100 - name: Build macOS binary bundle
94101 run: |
@@ -100,6 +107,9 @@ jobs:
100107 name: compaREST-macOS
101108 path: compaREST
102109
110+ - name: Cache Nix post
111+ uses: ./.github/actions/nix_cache_post
112+
103113 Linux-Windows:
104114 runs-on: ubuntu-latest
105115 steps:
@@ -121,6 +131,8 @@ jobs:
121131
122132 - name: Common setup
123133 uses: ./.github/actions/common_setup
134+ with:
135+ key: Linux-Windows-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
124136
125137 - name: Build Windows binary
126138 run: |
@@ -137,3 +149,6 @@ jobs:
137149 with:
138150 name: compaREST-Windows
139151 path: compaREST
152+
153+ - name: Cache Nix post
154+ uses: ./.github/actions/nix_cache_post