aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml6
-rw-r--r--.github/workflows/nightly.yml2
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%