Skip to content

referencing env in env doesn't work :( #644

referencing env in env doesn't work :(

referencing env in env doesn't work :( #644

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
validate:
name: GHC ${{ matrix.ghc }}, Cabal ${{ matrix.cabal }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
ghc: ['8.10', '9.0', '9.2', '9.4', '9.6']
cabal: ['3.4', '3.6']
env:
CONFIG: "--enable-tests --enable-doc --builddir=build/no-full-width-positions"
TEST_CONFIG: "--enable-tests --enable-doc --builddir=build/no-full-width-positions --test-options=\"--color always\""
steps:
- name: Checkout repository
uses: actions/checkout@v2.3.4
- name: Setup Haskell
uses: haskell/actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- name: Determine Dependencies
run: |
cabal update
cabal freeze
- name: Check Cache
uses: actions/cache@v2
with:
path: |
~/.cabal/store
build/no-full-width-positions
build/full-width-positions
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-
- name: Build
run: cabal build parsley $CONFIG
- name: Test (-full-width-positions)
run: |
cabal test parsley-core $TEST_CONFIG
cabal test parsley $TEST_CONFIG
- name: Test (+full-width-positions)
run: |
rm cabal.project.freeze
cabal test parsley-core --flag full-width-positions $TEST_CONFIG --builddir=build/full-width-positions
cabal test parsley --flag full-width-positions $TEST_CONFIG --builddir=build/full-width-positions
- name: Doc
run: cabal haddock parsley $CONFIG