summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2022-04-12 18:03:26 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2022-04-12 18:03:26 -0700
commitdc03399cc3f10251dd8c8922702032a55afe6466 (patch)
tree98e46afe234caf72d0a1c0cd5f5cbebe64bcfb65 /.github/workflows
parentf4609365287d80600a80c63cedd25de97b38d041 (diff)
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.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/nightly.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index fa42816ad..17f7495d7 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -28,7 +28,7 @@ jobs:
cabal v2-build --dependencies-only
- name: Build
run: |
- cabal v2-install
+ cabal v2-install -fnightly
strip $HOME/.cabal/bin/pandoc
- name: Install artifact
run: |
@@ -58,7 +58,7 @@ jobs:
for /f %%a in ('powershell -Command "Get-Date -format yyyy-MM-dd"') do set THEDATE=%%a
set ARTIFACTS=%CD%\nightly-windows\pandoc-nightly-windows-%THEDATE%
mkdir %ARTIFACTS%
- stack build pandoc
+ stack build --flag pandoc:nightly --flag pandoc:embed_data_files pandoc
forfiles /P .\.stack-work\install /M pandoc*.exe /S /C "cmd /C copy @path %%ARTIFACTS%%"
copy COPYRIGHT %ARTIFACTS%
ren %ARTIFACTS%\COPYRIGHT COPYRIGHT.txt
@@ -82,7 +82,7 @@ jobs:
run: |
export ARTIFACTS=nightly-macos/pandoc-nightly-macos-$(date +%Y-%m-%d)
mkdir -p ${ARTIFACTS}
- stack build pandoc
+ stack build --flag pandoc:nightly --flag pandoc:embed_data_files pandoc
for f in $(find .stack-work/install -name 'pandoc*' -perm +001 -type f); do cp $f ${ARTIFACTS}/; done
mv ${ARTIFACTS}/pandoc ${ARTIFACTS}/pandoc
cp COPYRIGHT ${ARTIFACTS}/