git.iko.soy/typeable/pandoc
on master help sign in
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.

commit030c23e04970570ec6f6aa574da33193366d77a9 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 4 May 2020, 08:44 (6 years ago) parent5b7364d
2 files changed+8
.github/workflows/ci.yml+6 .github/workflows/nightly.yml+2
.github/workflows/ci.yml+6
@@ -119,13 +119,19 @@ jobs:
119119 # key: ${{ runner.os }}-stack-work-${{ hashFiles('stack.yaml') }}
120120 # restore-keys: ${{ runner.os }}-stack-work
121121
122+ # Note: the set __COMPAT_LAYER= is needed to avoid an access
123+ # violation error; see
124+ # https://github.com/commercialhaskell/stack/issues/3765
125+
122126 - name: Install dependencies
123127 run: |
128+ set __COMPAT_LAYER=
124129 stack update
125130 stack test --dependencies-only --fast
126131 - name: Build and test
127132 shell: cmd
128133 run: |
134+ set __COMPAT_LAYER=
129135 stack test --fast --test-arguments=--hide-successes
130136
131137 macos:
.github/workflows/nightly.yml+2
@@ -48,6 +48,7 @@ jobs:
4848 choco install haskell-stack
4949 - name: Install dependencies
5050 run: |
51+ set __COMPAT_LAYER=
5152 stack update
5253 stack build --dependencies-only pandoc pandoc-citeproc
5354 - name: Build artifacts
@@ -56,6 +57,7 @@ jobs:
5657 for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
5758 set ARTIFACTS=%CD%\nightly-windows\pandoc-nightly-windows-%THEDATE%
5859 mkdir %ARTIFACTS%
60+ set __COMPAT_LAYER=
5961 stack build pandoc pandoc-citeproc
6062 forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C copy @path %%ARTIFACTS%%"
6163 copy COPYRIGHT %ARTIFACTS%