Files
pandoc/cabal.project
John MacFarlaneandClaude Opus 5.5 81686e803b Improve CI caching and fix Makefile build targets.
CI:
- Include a hash of cabal.project/stack.yaml and the .cabal files in
  cache keys, with restore-keys, so caches are refreshed as
  dependencies change instead of being frozen at the first save.
- Determine the cabal store location with `cabal path --store-dir`;
  the Windows path used %LOCALAPPDATA%, which actions/cache does not
  expand.
- Fix stack cache keys, which referred to a nonexistent matrix.
- Give each matrix job its own dist-newstyle cache.
- Cancel superseded CI runs on pull requests.
- Run apt-get update before installing libnuma-dev.
- Remove duplicate -Werror on Windows.

cabal.project: default to +http on GHC >= 9.14 (previously done only
in CI), so local builds behave the same; -f-http still overrides it.

Makefile:
- Use bash as SHELL (check-cabal uses pushd, check-version-sync ==).
- Fix $(id -u) in debpkg, which make expanded to empty.
- Fix missing echo in validate-docx-golden-tests{,2}.
- Ensure pandoc is built before rules that run it to produce files.
- Use git ls-files for SOURCEFILES, not the main branch's tree.
- Drop redundant embed_data_files flag in quick-stack.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 23:41:05 -07:00

114 lines
3.1 KiB
Plaintext

packages: .
pandoc-lua-engine
pandoc-server
pandoc-cli
constraints: skylighting-format-blaze-html >= 0.1.2.2,
skylighting-format-context >= 0.1.0.2,
auto-update >= 0.2.6,
crypton >= 2.0.1
-- GHC 9.14 ships base 4.22 and containers 0.8, which are newer than
-- the upper bounds of these packages allow.
if impl(ghc >= 9.14)
allow-newer: serialise:base,
serialise:containers,
cborg:base,
haddock-library:base
-- Otherwise the solver prefers disabling the http flag to using
-- allow-newer. (Can still be overridden with -f-http.)
if impl(ghc >= 9.14) && !arch(wasm32)
package pandoc
flags: +http
-- Use the bundled C zlib, so the build doesn't require any
-- C libraries to be installed.
package zlib
flags: +bundled-c-zlib
if arch(wasm32)
tests: False
package atomic-counter
flags: +no-cmm
package aeson
flags: -ordered-keymap
package crypton
ghc-options: -optc-DARGON2_NO_THREADS
package digest
flags: -pkg-config
package lua
flags: +cross-compile
ghc-options: -optc-mllvm
-optc-wasm-enable-sjlj
-optc-mllvm
-optc-wasm-use-legacy-eh=false
-optc-D_WASI_EMULATED_PROCESS_CLOCKS
-optc-D_WASI_EMULATED_SIGNAL
-optc-DLUA_STUB_TMPNAM
-optc-DLUA_STUB_TMPFILE
-optc-DLUA_STUB_SYSTEM
package pandoc
flags: -http
package pandoc-cli
flags: +lua -repl -server
ld-options: -lwasi-emulated-process-clocks -lwasi-emulated-signal -lsetjmp
package pandoc-lua-engine
flags: -repl
allow-newer:
all:base,
all:binary,
all:bytestring,
all:containers,
all:ghc-bignum,
all:template-haskell,
all:text,
all:time
source-repository-package
type: git
location: https://github.com/snoyberg/conduit.git
tag: 6b98f070fea09a3bf0a5d0897a2e27e3aa91c8fe
subdir: conduit-extra
post-checkout-command: sh -c "patch -N -p1 < ../../../wasm/patches/conduit-extra.patch"
source-repository-package
type: git
location: https://github.com/jappeace/ram.git
tag: 6e49475ae7b4b3545923407388690234d838dc45
post-checkout-command: sh -c "patch -N -p1 < ../../../wasm/patches/memory.patch"
source-repository-package
type: git
location: https://github.com/fpco/streaming-commons.git
tag: v0.2.3.1
post-checkout-command: sh -c "patch -N -p1 < ../../../wasm/patches/streaming-commons.patch"
source-repository-package
type: git
location: https://github.com/snoyberg/xml.git
tag: xml-conduit/1.10.1.0
subdir: xml-conduit
post-checkout-command: sh -c "patch -N -p1 < ../../../wasm/patches/xml-conduit.patch"
source-repository-package
type: git
location: https://github.com/haskellari/splitmix.git
tag: v0.1.3.2
post-checkout-command: sh -c "patch -N -p1 < ../../../wasm/patches/splitmix.patch"
source-repository-package
type: git
location: https://github.com/hslua/hslua
tag: lua-2.3.4
subdir: lua
post-checkout-command: sh -c "patch -N -p1 < ../../../wasm/patches/lua.patch"