Skip to content

Commit

Permalink
apply -j1 only on 'stack test'
Browse files Browse the repository at this point in the history
  • Loading branch information
msakai committed Jan 6, 2021
1 parent 99fdec1 commit 19e533c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ jobs:
os: windows-latest
stack_yaml: 'stack-ghc-8.8.yaml'
coveralls: false
flags: '-j1 --arch x86_64 --flag MIP:TestCBC --flag MIP:TestGlpsol --flag MIP:TestLPSolve'
flags: '--arch x86_64 --flag MIP:TestCBC --flag MIP:TestGlpsol --flag MIP:TestLPSolve'
flags_test: '-j1' # https://github.com/commercialhaskell/stack/issues/5024
arch: x86_64
windows_32_or_64: '64'
- ghc: '8.6.3'
os: windows-latest
stack_yaml: 'stack-windows-i386.yaml'
coveralls: false
flags: '-j1 --arch i386 --flag MIP:TestCBC --flag MIP:TestGlpsol --flag MIP:TestLPSolve'
flags: '--arch i386 --flag MIP:TestCBC --flag MIP:TestGlpsol --flag MIP:TestLPSolve'
flags_test: '-j1' # https://github.com/commercialhaskell/stack/issues/5024
arch: i386
windows_32_or_64: '32'
steps:
Expand Down Expand Up @@ -107,7 +109,7 @@ jobs:

- name: Test
shell: bash
run: stack test ${{ matrix.flags }} --extra-include-dirs=$GLPK_INCLUDE_DIR --extra-lib-dirs=$GLPK_LIB_DIR
run: stack test ${{ matrix.flags }} ${{ matrix.flags_test }} --extra-include-dirs=$GLPK_INCLUDE_DIR --extra-lib-dirs=$GLPK_LIB_DIR

- name: HPC Coveralls
if: ${{ matrix.coveralls }}
Expand Down

0 comments on commit 19e533c

Please sign in to comment.