Commit graph

56 commits

Author SHA1 Message Date
John MacFarlane
1f3f9d6dda Switch CI to ubuntu-latest. 2022-08-08 13:32:28 -07:00
Sukka
14cd2641e0
CI: update macos container version (#8197) 2022-07-24 15:40:53 -07: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
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
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
3ab08fe2fb Fix nightly build. 2021-04-19 12:59:11 -07:00
John MacFarlane
09548d8992 Fix linux nightly build to use ghc 8.10.3.
With 9.0.1 we can't yet build all dependencies.
2021-03-06 12:47:42 -08:00
John MacFarlane
d4707ee8bd Run nightly one hour later. 2020-10-05 23:59:17 -07:00
John MacFarlane
99f8923f20 Revert stack->cabal change in nightly.yml. 2020-09-23 09:30:14 -07:00
John MacFarlane
e2e6dbc3a6 Nightly process improvements.
- Use cabal for windows.
- Use most recent cabal/ghc.
- Udd sha1 to executable name.
2020-09-22 09:41:40 -07:00
John MacFarlane
5f33df322c CI: use checkout@v2, and use haskell-setup to install stack. 2020-09-22 09:13:48 -07:00
John MacFarlane
e0984a43a9 Add built-in citation support using new citeproc library.
This deprecates the use of the external pandoc-citeproc
filter; citation processing is now built in to pandoc.

* Add dependency on citeproc library.
* Add Text.Pandoc.Citeproc module (and some associated unexported
  modules under Text.Pandoc.Citeproc).  Exports `processCitations`.
  [API change]
* Add data files needed for Text.Pandoc.Citeproc:  default.csl
  in the data directory, and a citeproc directory that is just
  used at compile-time.  Note that we've added file-embed as a mandatory
  rather than a conditional depedency, because of the biblatex
  localization files. We might eventually want to use readDataFile
  for this, but it would take some code reorganization.
* Text.Pandoc.Loging: Add `CiteprocWarning` to `LogMessage` and use it
  in `processCitations`. [API change]
* Add tests from the pandoc-citeproc package as command tests (including
  some tests pandoc-citeproc did not pass).
* Remove instructions for building pandoc-citeproc from CI and
  release binary build instructions.  We will no longer distribute
  pandoc-citeproc.
* Markdown reader: tweak abbreviation support.  Don't insert a
  nonbreaking space after a potential abbreviation if it comes right before
  a note or citation.  This messes up several things, including citeproc's
  moving of note citations.
* Add `csljson` as and input and output format. This allows pandoc
  to convert between `csljson` and other bibliography formats,
  and to generate formatted versions of CSL JSON bibliographies.
* Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`. [API
  change]
* Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`. [API
  change]
* Added `bibtex`, `biblatex` as input formats.  This allows pandoc
  to convert between BibLaTeX and BibTeX and other bibliography formats,
  and to generated formatted versions of BibTeX/BibLaTeX bibliographies.
* Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
  `readBibLaTeX`. [API change]
* Make "standalone" implicit if output format is a bibliography format.
  This is needed because pandoc readers for bibliography formats put
  the bibliographic information in the `references` field of metadata;
  and unless standalone is specified, metadata gets ignored.
  (TODO: This needs improvement. We should trigger standalone for the
  reader when the input format is bibliographic, and for the writer
  when the output format is markdown.)
* Carry over `citationNoteNum` to `citationNoteNumber`.  This was just
  ignored in pandoc-citeproc.
* Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
  [API change] This runs the processCitations transformation.
  We need to treat it like a filter so it can be placed
  in the sequence of filter runs (after some, before others).
  In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
  so this special filter may be specified either way in a defaults file
  (or by `citeproc: true`, though this gives no control of positioning
  relative to other filters).  TODO: we need to add something to the
  manual section on defaults files for this.
* Add deprecation warning if `upandoc-citeproc` filter is used.
* Add `--citeproc/-C` option to trigger citation processing.
  This behaves like a filter and will be positioned
  relative to filters as they appear on the command line.
* Rewrote the manual on citatations, adding a dedicated Citations
  section which also includes some information formerly found in
  the pandoc-citeproc man page.
* Look for CSL styles in the `csl` subdirectory of the pandoc user data
  directory.  This changes the old pandoc-citeproc behavior, which looked
  in `~/.csl`.  Users can simply symlink `~/.csl` to the `csl`
  subdirectory of their pandoc user data directory if they want
  the old behavior.
* Add support for CSL bibliography entry formatting to LaTeX, HTML,
  Ms writers.  Added CSL-related CSS to styles.html.
2020-09-21 10:15:50 -07:00
John MacFarlane
43787143d2 CI: use ubuntu-18.04 instead of 20.04. 2020-06-14 16:45:01 -07:00
John MacFarlane
c449788440 CI: use cabal 3.2, also specify OS versions instead of 'latest.' 2020-06-14 16:41:12 -07:00
John MacFarlane
f699d64a1a Switch CI to use ghc 8.8.3.
This should fix CI failures.
2020-06-14 10:06:21 -07:00
John MacFarlane
eacd17c867 nightly: add ls statements to diagnose linux build failure. 2020-06-13 11:43:49 -07:00
John MacFarlane
9e5ccaca61 Revert "Use 'set __COMPAT_LAYER=' in Windows CI builds."
This reverts commit 030c23e049.
2020-05-04 09:34:26 -07:00
John MacFarlane
030c23e049 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.
2020-05-04 08:44:59 -07:00
John MacFarlane
f623db1d85 Fix path for nightly linux build. 2020-04-17 07:37:22 -07:00
John MacFarlane
d7cd612904 nightly: don't need to apt-get install. ci: test on ghc 8.10.1. 2020-04-16 08:54:42 -07:00
John MacFarlane
cc7e6d8280 nightly: ensure that ghc 8.8.1 is used for linux.
Previously it was using 8.10 which is suprisingly already installed.
2020-04-16 08:49:14 -07:00
John MacFarlane
b64ece76cb nightly build: print ghc, cabal versions for diagnostics. 2020-04-15 10:41:47 -07:00
John MacFarlane
f429863271 Use ghc 8.8.1 for nightly linux build. 2020-04-15 09:43:18 -07:00
John MacFarlane
88ba9a3127 Nightly - removed diagnostics. 2019-09-21 21:01:38 -07:00
John MacFarlane
21b6bd623c Nightly - another attempt to fix windows. 2019-09-21 17:33:34 -07:00
John MacFarlane
e3a6648e8f Nightlies - another attempt to fix windows build. 2019-09-21 10:35:31 -07:00
John MacFarlane
5ab14bfc0b Nightlies - 6 hour schedule for now. 2019-09-20 23:16:28 -07:00
John MacFarlane
5ebd5105ad Nightly - more windows tweaks. 2019-09-20 22:02:13 -07:00
John MacFarlane
e8f57ea1a4 Nightlies - more windows diagnostics. 2019-09-20 17:25:40 -07:00
John MacFarlane
a69d52c031 Nightlies - run every hour for debug. 2019-09-20 14:48:26 -07:00
John MacFarlane
bc3caaa795 nightlies - more windows diagnostics. 2019-09-20 14:44:21 -07:00
John MacFarlane
5f0e185a13 Nightly - use directory instead of suffix with date. 2019-09-20 08:25:46 -07:00
John MacFarlane
d617f59c2b Nightly - fix windows renaming with suffix. 2019-09-20 07:11:16 -07:00
John MacFarlane
3b457da6dc Nightly - windows diagnostics. 2019-09-19 23:30:15 -07:00
John MacFarlane
f7183e57fb Windows nightly - avoid double quotes in README.nightly. 2019-09-19 22:46:56 -07:00
John MacFarlane
e435943ed4 Restore nightly to once per day. 2019-09-19 18:53:03 -07:00
John MacFarlane
6e462a7040 Nightly - more windows tweaks. 2019-09-19 18:51:38 -07:00
John MacFarlane
be30b01935 Nightly - some windows fixes. 2019-09-19 15:57:48 -07:00
John MacFarlane
961e57c038 Nightly - strip linux executables. 2019-09-19 15:51:28 -07:00
John MacFarlane
7744f3f92b Nightly: Fix macos file finding. 2019-09-19 09:35:07 -07:00
John MacFarlane
f150ec04a0 Nightly - fix date setting on windows. 2019-09-19 09:09:41 -07:00
John MacFarlane
1f069cf64e Nightly improvements. 2019-09-19 00:16:28 -07:00
John MacFarlane
ebfa7d61f8 Nightly fixes. for now, run every 6 hours for debugging. 2019-09-18 11:22:14 -07:00