git.iko.soy/typeable/compaREST
on master help sign in
Split object files (#77)
5d875c2iko
.github/workflows/haskell.yml+14−7
@@ -12,11 +12,6 @@ jobs:
12
12
13 steps:
13 steps:
14 - uses: actions/checkout@v2
14 - 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"
20 - name: Cache
15 - name: Cache
21 uses: actions/cache@v1
16 uses: actions/cache@v1
22 with:
17 with:
@@ -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
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+
28 - name: Build
34 - name: Build
35+ run: |
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'
32
39
33 - name: Zip
40 - name: Zip
34 if: github.ref == 'refs/heads/master'
41 if: github.ref == 'refs/heads/master'
stack.yaml+3
@@ -3,3 +3,6 @@ resolver: nightly-2021-06-01
3extra-deps:
3extra-deps:
4 - open-union-0.4.0.0
4 - open-union-0.4.0.0
5 - type-fun-0.1.3
5 - type-fun-0.1.3
6+
7+apply-ghc-options: everything
8+rebuild-ghc-options: true