John MacFarlane
1bc48e9dc5
CI: use cabal 3.8.1.0, --ghc-options=-Werror.
...
Previously we had to work around a cabal-install bug that caused
`-Werror` to react to dependencies as well as local packages,
but this is fixed in cabal 3.8.1.0. There are some cases in which
building dependencies only doesn't work (see #8084 ).
2022-11-07 08:32:54 -08:00
John MacFarlane
df36019768
First stab at mtl 2.3 compliance.
...
This will no doubt produce a bunch of warnings and hence CI
failures, which we'll need to work around with explicit imports.
2022-10-31 16:51:51 -07:00
John MacFarlane
0be828c103
CI: add ghc 9.4.2.
2022-10-28 09:33:03 -07:00
John MacFarlane
dbac9541b5
CI: Make sure we test -lua configuration.
2022-10-17 22:10:30 -07:00
John MacFarlane
27ecd894ca
CI: make sure we catch benchmark build failure.
2022-10-13 23:46:07 -07:00
Albert Krewinkel
6300c3e10d
CI: build and test all components
2022-10-09 11:53:35 +02:00
John MacFarlane
04d79eac30
CI: Update files that don't trigger CI.
2022-09-27 10:47:40 -07:00
John MacFarlane
3162f111ef
CI: remove macos tests.
...
These take much longer than the others and slow down CI,
but there are almost never issues on macos that wouldn't show on linux.
2022-09-27 10:05:25 -07:00
John MacFarlane
e6db278061
Split benchmarks out of CI into separate action.
...
The benchmark action is only run on manual dispatch.
Rationale: this action dramatically slows down CI.
It is nice to run benchmarks, but we don't need them all the time.
We add (non-optimized) testing of benchmark compilation to one of
the CI builds.
2022-09-27 09:34:57 -07:00
John MacFarlane
5e6b28cd0e
CI: Test compilation without 'server' flag.
2022-09-26 22:03:27 -07:00
John MacFarlane
d0c6b3110f
CI: use secrets.CACHE_VERSION as cache key.
...
This allows us to invalidate the cache by incrementing
secrets.CACHE_VERSION in the UI.
The key component deriving from cabal.project has been removed.
Local caching has been re-added for Windows/stack.
2022-09-26 08:34:27 -07:00
John MacFarlane
8ddc2fc79a
Integrate server into main pandoc.
...
- Remove server flag.
- Remove pandoc-server executable.
- Add Text.Pandoc.Server as exposed module. [API change]
- Re-use Opt (and our existing FromJSON instance) for Params.
- Document.
2022-08-17 12:28:14 -07:00
John MacFarlane
97288cea56
Make sure we test building the server.
2022-08-16 09:14:10 -07:00
John MacFarlane
1f3f9d6dda
Switch CI to ubuntu-latest.
2022-08-08 13:32:28 -07:00
John MacFarlane
5635ef9c57
Replace old trypandoc code with new pandoc-cgi.
...
This is based on servant. It is less hacky and more extensible.
2022-08-06 14:42:38 -07:00
Sukka
14cd2641e0
CI: update macos container version ( #8197 )
2022-07-24 15:40:53 -07:00
Albert Krewinkel
405a31c3fd
CI: remove cabal command prefix.
...
This was required for older cabal-install versions, but these are no
longer supported.
2022-07-12 14:25:50 +02:00
Albert Krewinkel
0bd8a0e3d1
CI: test with latest GHC minor versions
2022-06-16 12:14:55 +02:00
Naveen
125210c108
Set permissions for GitHub actions ( #8005 )
...
- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com >
2022-04-04 20:58:46 -07:00
John MacFarlane
fec6ccaa0d
CI: ensure we're using the right version of cabal.
...
(Add `--set` to `ghcup install`.)
2022-04-04 09:12:36 -07:00
dependabot[bot]
c34340aaaf
Bump actions/checkout from 2 to 3 ( #7986 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-24 17:51:31 -07:00
dependabot[bot]
b15fe8e515
Bump actions/cache from 2 to 3 ( #7987 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-24 17:50:58 -07:00
John MacFarlane
acb187753a
Change benchmarks to use ghc 9.2.2 instead of 8.8.4.
2022-03-24 09:57:32 -07:00
John MacFarlane
8d04565394
Replace haskell/actions/setup with ghcup.
...
ghcup is installed by default on the GitHub runners.
This allows us to avoid relying on a third-party action
and may render #7984 irrelevant.
2022-03-24 09:26:47 -07:00
John MacFarlane
dff340ed50
CI: Test with ghc 9.2.2.
2022-03-24 09:22:10 -07:00
John MacFarlane
98275f1a85
Revert "Try re-enabling ghc 9.2.2 tests on CI."
...
This reverts commit 26f64c4d05 .
2022-03-22 10:08:49 -07:00
John MacFarlane
26f64c4d05
Try re-enabling ghc 9.2.2 tests on CI.
2022-03-22 09:42:33 -07:00
John MacFarlane
9b5e6a8944
Skip ghc 9.2.2 tests for now...
...
the are failing with exit 1 in linker phase (out of memory?).
2022-03-14 08:35:38 -07:00
John MacFarlane
307a4e25b2
CI: use ghcup to install ghc, cabal; use ghc 9.2.2.
2022-03-13 23:23:53 -07:00
John MacFarlane
d0a874bd30
Add CI for ghc 9.2.1.
2022-03-13 17:44:35 -07:00
Fabián Heredia Montiel
51c85b46ba
Update build files ( #7696 )
...
* Drop old windows 32-bit constraints
- basement >= 0.0.10 was 0.0.12 on stackage-18.10
- foundation >= 0.0.23 was 0.0.26.1 on stackage-18.10
* Update cabal `tested-with` field to correspond to `ci.yml` matrix
* ghc: 8.10.{2,4} → 8.10.7
2021-11-17 17:29:01 -08:00
John MacFarlane
03f9a0c61e
Require ghc >= 8.6, base >= 4.12.
...
This allows us to get rid of the old custom prelude and
some crufty cpp. But the primary reason for this is that
conduit has bumped its base lower bound to 4.12, making it
impossible for us to support lower base versions.
2021-11-09 23:43:12 -08:00
John MacFarlane
bac6ae9607
CI: remove test on ghc 8.0.2.
2021-11-05 19:13:29 -07:00
John MacFarlane
fcbfc8cd39
CI: remove linux-pdf for now.
...
I don't know what is going on with lmodern and lualatex.
2021-10-16 23:14:12 -07:00
John MacFarlane
3ddfb4cd6c
CI: more tweaks to pdf tests.
2021-10-16 22:57:10 -07:00
John MacFarlane
9d5dd8219e
CI: pdf test: need an input file!
2021-10-16 22:43:53 -07:00
John MacFarlane
b65951fa73
CI: fix yaml workflow.
2021-10-16 22:37:27 -07:00
John MacFarlane
fb804a375d
CI: add workflow to test pdf production...
...
with xelatex, pdflatex, lualatex.
2021-10-16 22:33:56 -07:00
John MacFarlane
395d65fdbe
CI: disable ansi-tricks in tasty.
...
This will prevent the test output from being overwhelmed
with headings from passing tests.
2021-09-08 09:02:28 -07:00
Albert Krewinkel
54ab7a0a3b
CI: test with GHC 9.0.1
2021-05-25 11:52:49 -07:00
John MacFarlane
83c83d4589
CI: install numa library.
...
See failure at https://github.com/jgm/pandoc/runs/2541449722
2021-05-10 08:45:43 -06:00
John MacFarlane
8d584b5826
CI: Use cabal 2.4 even with ghc 8.0.2
2021-04-18 21:58:55 -07:00
John MacFarlane
b0c8ba88a7
CI: test with different flags.
2021-03-19 14:34:13 -07:00
John MacFarlane
0075a456cc
Fix benchmark in ci.
2021-03-17 17:08:42 -07:00
John MacFarlane
2770f88d53
Fix benchmark CI to use gauge options.
2021-03-16 13:01:38 -07:00
John MacFarlane
5537802dc9
Fix CI for older cabal versions.
...
We add fields to matrix.versions to handle the cabal
command prefix (v2-, new-, nothing) and whether `--test-option`
is supported.
2021-02-28 18:33:04 -08:00
John MacFarlane
dd56822006
CI: don't use --test-option with older cabal versions (< 3).
2021-02-28 16:01:38 -08:00
John MacFarlane
c072b7cb59
CI: hide successes in linux test output.
2021-02-26 18:02:22 -08:00
John MacFarlane
938f402dec
CI: Add 'benchmark' to benchmark cache key.
...
For benchmark we build with optimizations, so the regular
cache is useless.
2021-02-22 23:24:13 -08:00
John MacFarlane
21d0b4745b
benchmark CI improvements.
...
- don't build tests, just benchmarks.
- get allocation info.
2021-02-22 22:09:32 -08:00