@@ -12,30 +12,11 @@ jobs:
13 runs-on: ubuntu-latest
13 runs-on: ubuntu-latest
15− - name: Increase swap
20− sudo swapoff /mnt/swapfile
21− sudo fallocate -l 12G /mnt/swapfile
22− sudo mkswap /mnt/swapfile
23− sudo swapon /mnt/swapfile
27− - uses: actions/checkout@v2
29− submodules: recursive
31 - name: Common setup
15 - name: Common setup
32 uses: ./.github/actions/common_setup
16 uses: ./.github/actions/common_setup
34− key: Linux-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
18+ authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
36− Linux-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}
37− Linux-${{ hashFiles('**.nix') }}
39 - name: Build Linux static binary
20 - name: Build Linux static binary
40 shell: bash
21 shell: bash
@@ -113,24 +94,13 @@ jobs:
113 asset_name: compaREST binary – Linux – x86
94 asset_name: compaREST binary – Linux – x86
114 tag: ${{ github.ref }}
95 tag: ${{ github.ref }}
117− uses: ./.github/actions/nix_cache_post
120 runs-on: macos-latest
98 runs-on: macos-latest
122− - uses: actions/checkout@v2
124− submodules: recursive
126 - name: Common setup
100 - name: Common setup
127 uses: ./.github/actions/common_setup
101 uses: ./.github/actions/common_setup
129− key: macOS-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
103+ authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
131− macOS-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}
132− macOS-${{ hashFiles('**.nix') }}
135 - name: Build macOS binary bundle
105 - name: Build macOS binary bundle
@@ -151,36 +121,13 @@ jobs:
151 asset_name: compaREST binary – macOS – x86
121 asset_name: compaREST binary – macOS – x86
152 tag: ${{ github.ref }}
122 tag: ${{ github.ref }}
155− uses: ./.github/actions/nix_cache_post
157 Linux-Windows:
124 Linux-Windows:
158 runs-on: ubuntu-latest
125 runs-on: ubuntu-latest
160− - name: Increase swap
165− sudo swapoff /mnt/swapfile
166− sudo fallocate -l 12G /mnt/swapfile
167− sudo mkswap /mnt/swapfile
168− sudo swapon /mnt/swapfile
172− - uses: actions/checkout@v2
174− submodules: recursive
176 - name: Common setup
127 - name: Common setup
177 uses: ./.github/actions/common_setup
128 uses: ./.github/actions/common_setup
179− key: Linux-Windows-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}-${{ hashFiles('**.cabal') }}
130+ authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
181− Linux-Windows-${{ hashFiles('**.nix') }}-${{ hashFiles('stack.yaml') }}
182− Linux-Windows-${{ hashFiles('**.nix') }}
185 - name: Build Windows binary
132 - name: Build Windows binary
@@ -200,6 +147,3 @@ jobs:
200 file: compaREST
147 file: compaREST
201 asset_name: compaREST binary – Windows
148 asset_name: compaREST binary – Windows
202 tag: ${{ github.ref }}
149 tag: ${{ github.ref }}
205− uses: ./.github/actions/nix_cache_post