diff options
author | John MacFarlane <jgm@berkeley.edu> | 2020-05-04 08:44:59 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2020-05-04 08:44:59 -0700 |
commit | 030c23e04970570ec6f6aa574da33193366d77a9 (patch) | |
tree | 1b630a1876f0ed2aab3800b0238df432f1c9ad10 | |
parent | 5b7364d02fd80a695a5e309f73c1ddab7bfd5f00 (diff) | |
download | pandoc-030c23e04970570ec6f6aa574da33193366d77a9.tar.gz |
Use 'set __COMPAT_LAYER=' in Windows CI builds.
It is suggested at
https://github.com/commercialhaskell/stack/issues/3765
that this may solve the "access violation" we're currently
getting on Windows CI with ghc 8.8.
-rw-r--r-- | .github/workflows/ci.yml | 6 | ||||
-rw-r--r-- | .github/workflows/nightly.yml | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05bb75f7f..ac0e39bb6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -119,13 +119,19 @@ jobs: # key: ${{ runner.os }}-stack-work-${{ hashFiles('stack.yaml') }} # restore-keys: ${{ runner.os }}-stack-work + # Note: the set __COMPAT_LAYER= is needed to avoid an access + # violation error; see + # https://github.com/commercialhaskell/stack/issues/3765 + - name: Install dependencies run: | + set __COMPAT_LAYER= stack update stack test --dependencies-only --fast - name: Build and test shell: cmd run: | + set __COMPAT_LAYER= stack test --fast --test-arguments=--hide-successes macos: diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 95bba5949..2b391cada 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -48,6 +48,7 @@ jobs: choco install haskell-stack - name: Install dependencies run: | + set __COMPAT_LAYER= stack update stack build --dependencies-only pandoc pandoc-citeproc - name: Build artifacts @@ -56,6 +57,7 @@ jobs: for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a set ARTIFACTS=%CD%\nightly-windows\pandoc-nightly-windows-%THEDATE% mkdir %ARTIFACTS% + set __COMPAT_LAYER= stack build pandoc pandoc-citeproc forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C copy @path %%ARTIFACTS%%" copy COPYRIGHT %ARTIFACTS% |