Commit Graph
237 Commits
Author SHA1 Message Date
Albert Krewinkel 6300c3e10d CI: build and test all components 2022-10-09 11:53:35 +02:00
John MacFarlane 875747f351 Fix rc build for Windows. 2022-10-04 14:19:12 -07:00
John MacFarlane 1c01d39a17 Fix nightly flag for macos nightly build. 2022-10-02 09:33:52 -07:00
John MacFarlane 08b9530fc1 Fix nightly Windows build so it uses nightly flag. 2022-10-01 10:23:30 -07:00
John MacFarlane 57fd3c4f81 cabal.project: move back to using flags:.
If we add the flag to constraints, it can't be overridden on
the command line.
2022-09-29 10:19:30 -07: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
Albert Krewinkel ced8b258be Fix stack config, nightly build 2022-09-23 11:16:06 +02:00
John MacFarlane 8ad64a8318 Add pandoc-lua and man pages to releases. 2022-09-22 14:49:02 -07:00
dependabot[bot] 7f1bb99a03 build(deps): bump actions/upload-artifact from 2 to 3 (#8304)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-18 20:38:35 -07:00
John MacFarlane 48ec4b55b7 Remove -split-sections from windows release candidate build.
It's not available for Windows ghc.
2022-08-17 14:53:22 -07:00
John MacFarlane 67f6c9eb75 Release candidate: try to speed up and improve windows build. 2022-08-17 14:05:51 -07:00
John MacFarlane b3fdfb912c macos release candidate: create symlink after download.
Otherwise we seem to get a full copy of the file!
2022-08-17 14:01:36 -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 46eecf72c3 Fix rc action for pandoc-server. 2022-08-16 09:12:55 -07:00
John MacFarlane 1f3f9d6dda Switch CI to ubuntu-latest. 2022-08-08 13:32:28 -07:00
John MacFarlane 2b30d27669 Rename pandoc-cgi -> pandoc-server. 2022-08-07 21:26:17 -07:00
John MacFarlane 48b4e46603 rc build: copy pandoc-cgi to linux release candidate artifacts. 2022-08-06 16:58:58 -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
John MacFarlane 4c485fbf41 nightly: use ghcup instead of haskell/actions 2022-04-24 22:52:03 -07:00
dependabot[bot] 955cb1fbc9 Bump haskell/actions from 1 to 2 (#8039)
Bumps [haskell/actions](https://github.com/haskell/actions) from 1 to 2.
- [Release notes](https://github.com/haskell/actions/releases)
- [Commits](https://github.com/haskell/actions/compare/v1...v2)

---
updated-dependencies:
- dependency-name: haskell/actions
  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-04-24 22:47:58 -07:00
John MacFarlane dc03399cc3 Add 'nightly' flag.
This causes a `-nightly-COMPILEDATE` suffix to be added the
the output of `--version`.

This is used in the nightly CI builds.

Closes #8016.
2022-04-12 18:03:26 -07:00
John MacFarlane f460936528 Revert "Add 'nightly' flag and build with this for nightlies."
This reverts commit f81f5a2090.
2022-04-12 10:06:02 -07:00
John MacFarlane 98034e8673 Revert "Nightly builds: ensure that data files are baked in."
This reverts commit a2818e97eb.
2022-04-12 10:05:24 -07:00
John MacFarlane a2818e97eb Nightly builds: ensure that data files are baked in.
It seems that stack is replacing ALL flag settings rather
than overriding just one with `--flag`?

This should address #8016 but we await testing after
tonight's nightly is built.
2022-04-12 09:19:01 -07:00
John MacFarlane f81f5a2090 Add 'nightly' flag and build with this for nightlies.
This flag causes a suffix '-nightly-YYYY-MM-DD' to be added
to the version for nightlies.

Closes #8016.
2022-04-11 17:17:11 -07: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
Naveen f4a7ba967e Set permissions for GitHub actions (#7984)
This limits the damage that a compromised GitHub action could do.

See https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
2022-03-24 09:32:57 -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
John MacFarlane ce7e1f5169 Fix macos build on GitHub actions release-candidate. 2021-12-29 23:31:49 -08:00
John MacFarlane a6f62b2e79 Restore macos build on GitHub release-candidate action.
See #7767.
2021-12-29 16:45:16 -08: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