Commit Graph
51 Commits
Author SHA1 Message Date
dependabot[bot] 72269357b7 Bump actions/upload-artifact from 3 to 4
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
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>
2023-12-18 09:39:50 -08:00
John MacFarlane 889dcbe99c Use ghc 9.6 for release builds.
See #8947.
2023-08-04 13:54:04 -07:00
John MacFarlane 52dc8342ab Change Windows release build to use cabal instead of stack.
Use ghc 9.2 to address #8955.
2023-07-18 17:01:25 -07:00
John MacFarlane c9a04e5cec Fix release-candidate build for macos.
Use ghc 9.4 and cabal 3.10.
2023-03-27 13:31:22 -07:00
John MacFarlane 7916940c23 More macos release candidate tweaks. 2023-03-12 20:36:45 -07:00
John MacFarlane 2c7b7620ab Fix macos release candidate on GitHub actions.
Change name of release candidate.

Remove linux rc build, as we're building on cirrus.
2023-03-12 19:43:28 -07:00
John MacFarlane 1cd5829a0c Factor out make_macos_release.sh from the release candidate workflow.
Also use cabal instead of stack to build the macos binary.
2023-03-10 09:23:16 -08:00
John MacFarlane 538e63846d Macos release candidate action: fix version.txt. 2023-01-18 13:07:54 -08:00
John MacFarlane 0e85a77f78 Switch release_candidate workflow to workflow_dispatch 2022-10-24 16:23:30 -07:00
John MacFarlane 875747f351 Fix rc build for Windows. 2022-10-04 14:19:12 -07: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 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
Sukka 14cd2641e0 CI: update macos container version (#8197) 2022-07-24 15:40:53 -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
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 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
John MacFarlane 651b241533 Avoid split-sections for Windows rc.
We get an error "too many sections."

Maybe a bug in stack?
https://stackoverflow.com/questions/64287505/ld-too-many-sections-90295
2021-03-02 10:01:52 -08:00
John MacFarlane 26c496d936 Use -split-sections in creating release binary.
This is supposed to reduce executable size.
2021-03-01 10:06:10 -08:00
John MacFarlane ea7fea58a9 release-candidate build: use latest stack on the runner.
instead of installing from choco.

Remove obsolete macos and win i386 sections.
2020-09-22 09:47:44 -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 8369eb67d7 release-candidate: don't build windows i386.
So far we haven't been able to figure out how to get
stack to use a 32-bit ghc.
2020-08-28 14:42:00 -07:00
John MacFarlane 8d8f98fb7b Remove macos build from GitHub actions rc. 2020-08-27 18:10:21 -07:00
John MacFarlane c990027832 Linux rc build: use ghc-musl container.
This simplifies our build process a bit (over using
a customized alpine container).

Use new `--enable-executable-static` flag in build.

make_artifacts.sh: Fix deprecated find -perm syntax.
2020-08-11 21:33:21 -07:00
John MacFarlane 8677aa92fc release-candidate: pin upload-artifact to specific version. 2020-07-23 21:32:17 -07:00
John MacFarlane 3397347612 rc action: use older stack that supports i386 for Windows i386 build. 2020-06-29 15:15:21 -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 9b00526e44 Actions/release-candidate/macos: set up to create package locally.
We need to sign the binaries before inserting them into the
package, so this should be done locally.
2020-03-22 10:30:45 -07:00
John MacFarlane 761ece90c9 Windows rc: Create the release dir. 2020-01-21 17:56:31 -08:00
John MacFarlane 5028278569 windows release candidate build: More fixes to get 'light' to work. 2020-01-18 16:02:28 -08:00
John MacFarlane 2895fdccfb Windows ci: Add binpath when doing 'light'. 2020-01-18 12:15:56 -08:00
John MacFarlane 9570576fa9 Fix typo in windows ci build. 2020-01-18 09:30:17 -08:00
John MacFarlane c78af6f3a6 Use versioned directory for windows release zipfile.
Also remove old make-windows-installer.bat, superseded
by GitHub actions workflow, and modify pandoc.wxs for
new paths.
2020-01-17 15:37:49 -08:00
John MacFarlane 5de761482a Macos release workflow: just copy pandoc.1 rather than regenerating. 2019-12-22 22:58:53 -08:00
John MacFarlane 434a483eab Revert "linux release-candidate build: try setting LIBRARY_PATH."
This reverts commit 392c14311f.

It didn't help.
2019-12-21 20:28:50 -08:00
John MacFarlane 392c14311f linux release-candidate build: try setting LIBRARY_PATH.
For some reason ld can't find zlib in the latest build.
Maybe this will help?
2019-12-21 13:35:16 -08:00
John MacFarlane ee6cf6ad6b Add Makefile to windows release-candidate build.
Running 'make' in this directory will do the code signing of the msi.
2019-11-29 11:50:09 -08:00
John MacFarlane 0267c1f6f3 Use -j1 for rc builds.
Avoid running out of memory.
2019-11-18 21:11:46 -08:00
John MacFarlane 7d25a7f3fe release-candidate.yml: add zip for windows. 2019-10-05 10:17:06 -07:00
John MacFarlane d40349d541 Update release-candidate.yml for GitHub actions.
Adds builds for macos and for both 32- and 64-bit windows.
2019-10-05 10:01:04 -07:00
John MacFarlane c1015abb4d windows rc: build 32- and 64-bit msi. 2019-10-04 22:43:39 -07:00