@@ -12,11 +12,6 @@ jobs:
1212
1313 steps:
1414 - uses: actions/checkout@v2
15− - uses: haskell/actions/setup@v1
16− with:
17− enable-stack: true
18− stack-no-global: true
19− stack-version: "latest"
2015 - name: Cache
2116 uses: actions/cache@v1
2217 with:
@@ -25,10 +20,22 @@ jobs:
2520 restore-keys: |
2621 ${{ runner.os }}-build-stack-${{ hashFiles('**/stack.yaml') }}
2722 ${{ runner.os }}-build-stack-
23+ - name: Increase swap
24+ run: |
25+ free -h
26+
27+ sudo swapoff /mnt/swapfile
28+ sudo fallocate -l 12G /mnt/swapfile
29+ sudo mkswap /mnt/swapfile
30+ sudo swapon /mnt/swapfile
31+
32+ free -h
33+
2834 - name: Build
29− run: stack build --ghc-options="-O3 -j" --local-bin-path openapi-diff-linux --copy-bins --flag openapi-diff:Static
35+ run: |
36+ stack build --ghc-options=-O3 --ghc-options=-split-sections --local-bin-path openapi-diff-linux --copy-bins --flag openapi-diff:Static
3037 - 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'
3239
3340 - name: Zip
3441 if: github.ref == 'refs/heads/master'