@@ -12,11 +12,6 @@ jobs:
14 - uses: actions/checkout@v2
14 - uses: actions/checkout@v2
15− - uses: haskell/actions/setup@v1
18− stack-no-global: true
19− stack-version: "latest"
20 - name: Cache
15 - name: Cache
21 uses: actions/cache@v1
16 uses: actions/cache@v1
@@ -25,10 +20,22 @@ jobs:
25 restore-keys: |
20 restore-keys: |
26 ${{ runner.os }}-build-stack-${{ hashFiles('**/stack.yaml') }}
21 ${{ runner.os }}-build-stack-${{ hashFiles('**/stack.yaml') }}
27 ${{ runner.os }}-build-stack-
22 ${{ runner.os }}-build-stack-
23+ - name: Increase swap
27+ sudo swapoff /mnt/swapfile
28+ sudo fallocate -l 12G /mnt/swapfile
29+ sudo mkswap /mnt/swapfile
30+ sudo swapon /mnt/swapfile
28 - name: Build
34 - name: Build
29− run: stack build --ghc-options="-O3 -j" --local-bin-path openapi-diff-linux --copy-bins --flag openapi-diff:Static
36+ stack build --ghc-options=-O3 --ghc-options=-split-sections --local-bin-path openapi-diff-linux --copy-bins --flag openapi-diff:Static
30 - name: Test
37 - name: Test
31− run: stack test --test-arguments='--hide-successes --no-create'
38+ run: stack test --ghc-options=-O3 --ghc-options=-split-sections --flag openapi-diff:Static --test-arguments='--hide-successes --no-create'
33 - name: Zip
40 - name: Zip
34 if: github.ref == 'refs/heads/master'
41 if: github.ref == 'refs/heads/master'