on master help sign in
Remove the opt option from streamly-benchmarks

Wherever possible, to improve build times. We keep one CI having benchmarks and tests optimized + fusion plugin. In all other CIs we remove optimization from benchmarks and tests. Disable x86 build on circle-ci.

commitac3af8749194f1788704dda8667d0b3807075cc2 authorHarendra Kumar <harendra@composewell.com> dateMon 14 Dec 2020, 06:27 (6 years ago) parentb677d0d
4 files changed+14−8
.circleci/config.yml+3−2 .github/workflows/haskell.yml+5−5 appveyor.yml+1 cabal.project.ci+5−1
.circleci/config.yml+3−2
@@ -140,6 +140,7 @@ jobs:
140140 BUILD: "stack"
141141 RESOLVER: "lts-16.12"
142142 SDIST_OPTIONS: "--ignore-check"
143+ STACK_BUILD_OPTIONS: "--flag streamly-benchmarks:-opt"
143144 command: |
144145 apt-get build-dep -y ghc-8.8.4
145146 apt-get install -y cabal-install-3.2
@@ -379,8 +380,8 @@ workflows:
379380 build:
380381 jobs:
381382 #- cabal-ghc-8.6.5
382− - cabal-ghc-8_4_4:
383− name: GHC 8.4.4 + x86 + debug
383+ #- cabal-ghc-8_4_4:
384+ # name: GHC 8.4.4 + x86 + debug
384385 - cabal-ghc-8_2_2:
385386 name: GHC 8.2.2 + no-test + no-bench + no-docs
386387 - cabal-ghc-8_0_2:
.github/workflows/haskell.yml+5−5
@@ -35,27 +35,27 @@ jobs:
3535 strategy:
3636 fail-fast: false
3737 matrix:
38− name: [8.8.3+inspection+Werror, 8.6.5+streamk, 8.6.5+fusion-plugin, 8.4.4+debug]
38+ name: [8.8.3+inspection+fusion-plugin+Werror, 8.6.5+fusion-plugin, 8.6.5+streamk, 8.4.4+debug]
3939 cabal_version: ["3.2"]
4040 include:
41− - name: 8.8.3+inspection+Werror
41+ - name: 8.8.3+inspection+fusion-plugin+Werror
4242 ghc_version: 8.8.3
4343 build: cabal-v2
4444 cabal_project: cabal.project.ci
4545 - name: 8.6.5+streamk
4646 ghc_version: 8.6.5
4747 build: cabal-v2
48− cabal_build_options: "--flags streamk"
48+ cabal_build_options: "--flag streamk --flag -opt"
4949 - name: 8.6.5+fusion-plugin
5050 ghc_version: 8.6.5
5151 build: cabal-v2
52− cabal_build_options: "--flags fusion-plugin"
52+ cabal_build_options: "--flag fusion-plugin"
5353 # haddock generation does not work with 8.6.5+fusion-plugin
5454 disable_docs: "y"
5555 - name: 8.4.4+debug
5656 ghc_version: 8.4.4
5757 build: cabal-v2
58− cabal_build_options: "--flag debug"
58+ cabal_build_options: "--flag debug --flag -opt"
5959
6060 steps:
6161 - uses: actions/checkout@v2
appveyor.yml+1
@@ -38,6 +38,7 @@ environment:
3838 STACK_UPGRADE: "y"
3939 RESOLVER: "lts-16.12"
4040 STACK_ROOT: "c:\\sr"
41+ STACK_BUILD_OPTIONS: "--flag streamly-benchmarks:-opt"
4142
4243 # ------------------------------------------------------------------------
4344 # cabal options
cabal.project.ci+5−1
@@ -1,4 +1,4 @@
1−packages:
1+packages:
22 ./
33 benchmark
44
@@ -9,3 +9,7 @@ package streamly
99package streamly-benchmarks
1010 ghc-options: -Werror
1111 flags: inspection fusion-plugin
12+
13+package streamly-tests
14+ ghc-options: -Werror
15+ flags: opt fusion-plugin