;ci: linux: use -split-sections to shrink binaries by ~30% (slower ?)
This commit is contained in:
parent
536bea2a78
commit
b0ad7c138b
5
.github/workflows/linux.yml
vendored
5
.github/workflows/linux.yml
vendored
@ -179,9 +179,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
ARGS: ${{ matrix.plan.args }}
|
ARGS: ${{ matrix.plan.args }}
|
||||||
|
|
||||||
- name: Build all hledger modules optimised and warning free, run unit/doc/bench tests
|
- name: Build all hledger modules warning free, optimised and minimised, run unit/doc/bench tests
|
||||||
run: |
|
run: |
|
||||||
stack $ARGS install --test --bench --force-dirty --ghc-options=-fforce-recomp --ghc-options=-Werror --no-terminal
|
stack $ARGS install --test --bench --force-dirty --ghc-options=-fforce-recomp --ghc-options=-Werror --ghc-options=-split-sections --no-terminal
|
||||||
|
# -split-sections shrinks binaries by 30% on average here
|
||||||
# --pedantic --no-run-benchmarks
|
# --pedantic --no-run-benchmarks
|
||||||
env:
|
env:
|
||||||
ARGS: ${{ matrix.plan.args }}
|
ARGS: ${{ matrix.plan.args }}
|
||||||
|
|||||||
1
.github/workflows/mac.yml
vendored
1
.github/workflows/mac.yml
vendored
@ -104,6 +104,7 @@ jobs:
|
|||||||
- name: Build hledger and test unit tests, doc tests
|
- name: Build hledger and test unit tests, doc tests
|
||||||
run: |
|
run: |
|
||||||
stack install --test --force-dirty --ghc-options=-fforce-recomp --ghc-options=-Werror
|
stack install --test --force-dirty --ghc-options=-fforce-recomp --ghc-options=-Werror
|
||||||
|
# --ghc-options=-split-sections doesn't work on mac
|
||||||
# --pedantic
|
# --pedantic
|
||||||
|
|
||||||
- name: Install shelltestrunner
|
- name: Install shelltestrunner
|
||||||
|
|||||||
3
.github/workflows/windows.yml
vendored
3
.github/workflows/windows.yml
vendored
@ -129,9 +129,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
stack --resolver=lts-15.3 --no-terminal build --only-dependencies
|
stack --resolver=lts-15.3 --no-terminal build --only-dependencies
|
||||||
|
|
||||||
- name: Build hledger executables
|
- name: Build all hledger modules warning free, optimised and minimised
|
||||||
run: |
|
run: |
|
||||||
stack --resolver=lts-15.3 --no-terminal install --force-dirty --ghc-options=-fforce-recomp --ghc-options=-Werror
|
stack --resolver=lts-15.3 --no-terminal install --force-dirty --ghc-options=-fforce-recomp --ghc-options=-Werror
|
||||||
|
# --ghc-options=-split-sections doesn't work on windows, "too many sections"
|
||||||
# --pedantic
|
# --pedantic
|
||||||
|
|
||||||
# run hledger-lib/hledger functional tests, skipping the ones for addons
|
# run hledger-lib/hledger functional tests, skipping the ones for addons
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user