@@ -29,7 +29,9 @@ jobs:
29 submodules: recursive
29 submodules: recursive
31 - name: Common setup
31 - name: Common setup
32− uses: ./.github/actions/common_setup
32+ uses: ./.github/actions/nix_cache
34+ key: Linux-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
34 - name: Build Linux static binary
36 - name: Build Linux static binary
35 shell: bash
37 shell: bash
@@ -80,6 +82,9 @@ jobs:
80 skopeo copy docker-archive:$(nix-build -A compaRESTGithubAction -j auto) docker://typeable/comparest-github-action:${{ github.event.payload.name }}
82 skopeo copy docker-archive:$(nix-build -A compaRESTGithubAction -j auto) docker://typeable/comparest-github-action:${{ github.event.payload.name }}
81 skopeo copy docker-archive:$(nix-build -A compaRESTImage -j auto) docker://typeable/comparest:${{ github.event.payload.name }}
83 skopeo copy docker-archive:$(nix-build -A compaRESTImage -j auto) docker://typeable/comparest:${{ github.event.payload.name }}
85+ - name: Cache Nix post
86+ uses: ./.github/actions/nix_cache_post
84 runs-on: macos-latest
89 runs-on: macos-latest
@@ -89,6 +94,8 @@ jobs:
90 - name: Common setup
95 - name: Common setup
91 uses: ./.github/actions/common_setup
96 uses: ./.github/actions/common_setup
98+ key: macOS-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
93 - name: Build macOS binary bundle
100 - name: Build macOS binary bundle
@@ -100,6 +107,9 @@ jobs:
100 name: compaREST-macOS
107 name: compaREST-macOS
101 path: compaREST
108 path: compaREST
110+ - name: Cache Nix post
111+ uses: ./.github/actions/nix_cache_post
103 Linux-Windows:
113 Linux-Windows:
104 runs-on: ubuntu-latest
114 runs-on: ubuntu-latest
@@ -121,6 +131,8 @@ jobs:
122 - name: Common setup
132 - name: Common setup
123 uses: ./.github/actions/common_setup
133 uses: ./.github/actions/common_setup
135+ key: Linux-Windows-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
125 - name: Build Windows binary
137 - name: Build Windows binary
@@ -137,3 +149,6 @@ jobs:
138 name: compaREST-Windows
150 name: compaREST-Windows
139 path: compaREST
151 path: compaREST
153+ - name: Cache Nix post
154+ uses: ./.github/actions/nix_cache_post