@@ -12,30 +12,11 @@ jobs:
1212 Linux:
1313 runs-on: ubuntu-latest
1414 steps:
15− - name: Increase swap
16− shell: bash
17− run: |
18− free -h
19−
20− sudo swapoff /mnt/swapfile
21− sudo fallocate -l 12G /mnt/swapfile
22− sudo mkswap /mnt/swapfile
23− sudo swapon /mnt/swapfile
24−
25− free -h
26−
27− - uses: actions/checkout@v2
28− with:
29− submodules: recursive
30−
3115 - name: Common setup
3216 uses: ./.github/actions/common_setup
3317 with:
34− key: Linux-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
35− restore-keys: |
36− Linux-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}
37− Linux-${{ hashFiles('**.nix') }}
38− Linux
18+ authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
19+
3920 - name: Build Linux static binary
4021 shell: bash
4122 run: |
@@ -113,24 +94,13 @@ jobs:
11394 asset_name: compaREST binary – Linux – x86
11495 tag: ${{ github.ref }}
11596
116− - name: Cahce post
117− uses: ./.github/actions/nix_cache_post
118−
11997 macOS:
12098 runs-on: macos-latest
12199 steps:
122− - uses: actions/checkout@v2
123− with:
124− submodules: recursive
125−
126100 - name: Common setup
127101 uses: ./.github/actions/common_setup
128102 with:
129− key: macOS-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
130− restore-keys: |
131− macOS-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}
132− macOS-${{ hashFiles('**.nix') }}
133− macOS
103+ authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
134104
135105 - name: Build macOS binary bundle
136106 run: |
@@ -151,36 +121,13 @@ jobs:
151121 asset_name: compaREST binary – macOS – x86
152122 tag: ${{ github.ref }}
153123
154− - name: Cahce post
155− uses: ./.github/actions/nix_cache_post
156−
157124 Linux-Windows:
158125 runs-on: ubuntu-latest
159126 steps:
160− - name: Increase swap
161− shell: bash
162− run: |
163− free -h
164−
165− sudo swapoff /mnt/swapfile
166− sudo fallocate -l 12G /mnt/swapfile
167− sudo mkswap /mnt/swapfile
168− sudo swapon /mnt/swapfile
169−
170− free -h
171−
172− - uses: actions/checkout@v2
173− with:
174− submodules: recursive
175−
176127 - name: Common setup
177128 uses: ./.github/actions/common_setup
178129 with:
179− key: Linux-Windows-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
180− restore-keys: |
181− Linux-Windows-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}
182− Linux-Windows-${{ hashFiles('**.nix') }}
183− Linux-Windows
130+ authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
184131
185132 - name: Build Windows binary
186133 run: |
@@ -200,6 +147,3 @@ jobs:
200147 file: compaREST
201148 asset_name: compaREST binary – Windows
202149 tag: ${{ github.ref }}
203−
204− - name: Cahce post
205− uses: ./.github/actions/nix_cache_post