CI: remove cabal command prefix.
This was required for older cabal-install versions, but these are no longer supported.
This commit is contained in:
parent
c950a28191
commit
405a31c3fd
1 changed files with 4 additions and 9 deletions
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
|
@ -48,27 +48,22 @@ jobs:
|
||||||
versions:
|
versions:
|
||||||
- ghc: '8.6.5'
|
- ghc: '8.6.5'
|
||||||
cabal: '3.2'
|
cabal: '3.2'
|
||||||
prefix: ''
|
|
||||||
cabalopts: '-f-embed_data_files'
|
cabalopts: '-f-embed_data_files'
|
||||||
testopts: '--test-option=--hide-successes --test-option=--ansi-tricks=false'
|
testopts: '--test-option=--hide-successes --test-option=--ansi-tricks=false'
|
||||||
- ghc: '8.8.4'
|
- ghc: '8.8.4'
|
||||||
cabal: '3.2'
|
cabal: '3.2'
|
||||||
prefix: ''
|
|
||||||
cabalopts: ''
|
cabalopts: ''
|
||||||
testopts: '--test-option=--hide-successes --test-option=--ansi-tricks=false'
|
testopts: '--test-option=--hide-successes --test-option=--ansi-tricks=false'
|
||||||
- ghc: '8.10.7'
|
- ghc: '8.10.7'
|
||||||
cabal: '3.2'
|
cabal: '3.2'
|
||||||
prefix: ''
|
|
||||||
cabalopts: '-ftrypandoc'
|
cabalopts: '-ftrypandoc'
|
||||||
testopts: '--test-option=--hide-successes --test-option=--ansi-tricks=false'
|
testopts: '--test-option=--hide-successes --test-option=--ansi-tricks=false'
|
||||||
- ghc: '9.0.2'
|
- ghc: '9.0.2'
|
||||||
cabal: '3.4'
|
cabal: '3.4'
|
||||||
prefix: ''
|
|
||||||
cabalopts: ''
|
cabalopts: ''
|
||||||
testopts: '--test-option=--hide-successes --test-option=--ansi-tricks=false'
|
testopts: '--test-option=--hide-successes --test-option=--ansi-tricks=false'
|
||||||
- ghc: '9.2.3'
|
- ghc: '9.2.3'
|
||||||
cabal: '3.6'
|
cabal: '3.6'
|
||||||
prefix: ''
|
|
||||||
cabalopts: ''
|
cabalopts: ''
|
||||||
testopts: '--test-option=--hide-successes --test-option=--ansi-tricks=false'
|
testopts: '--test-option=--hide-successes --test-option=--ansi-tricks=false'
|
||||||
steps:
|
steps:
|
||||||
|
@ -105,15 +100,15 @@ jobs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
cabal ${{ matrix.versions.prefix }}update
|
cabal update
|
||||||
cabal ${{ matrix.versions.prefix }}build ${{ matrix.versions.cabalopts }} --dependencies-only --enable-tests --disable-optimization
|
cabal build ${{ matrix.versions.cabalopts }} --dependencies-only --enable-tests --disable-optimization
|
||||||
|
|
||||||
- name: Build and test
|
- name: Build and test
|
||||||
run: |
|
run: |
|
||||||
cabal ${{ matrix.versions.prefix }}build ${{ matrix.versions.cabalopts }} --enable-tests --disable-optimization 2>&1 | tee build.log
|
cabal build ${{ matrix.versions.cabalopts }} --enable-tests --disable-optimization 2>&1 | tee build.log
|
||||||
# fail if warnings in local build
|
# fail if warnings in local build
|
||||||
! grep -q ": *[Ww]arning:" build.log || exit 1
|
! grep -q ": *[Ww]arning:" build.log || exit 1
|
||||||
cabal ${{ matrix.versions.prefix }}test ${{ matrix.versions.cabalopts }} --disable-optimization ${{ matrix.versions.testopts }}
|
cabal test ${{ matrix.versions.cabalopts }} --disable-optimization ${{ matrix.versions.testopts }}
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue