@@ -2,7 +2,7 @@ name: Nightly
5− - cron: '30 3 * * *'
5+ - cron: '21 4 * * *'
@@ -19,11 +19,11 @@ jobs:
20 export PATH=/opt/cabal/bin:/opt/ghc/bin:$PATH
20 export PATH=/opt/cabal/bin:/opt/ghc/bin:$PATH
21 cabal v2-update
21 cabal v2-update
22− cabal v2-build --dependencies-only --enable-tests . pandoc-citeproc
22+ cabal v2-build --dependencies-only . pandoc-citeproc
23− - name: Build and test
23+ - name: Build
25 export PATH=/opt/cabal/bin:/opt/ghc/bin:$PATH
25 export PATH=/opt/cabal/bin:/opt/ghc/bin:$PATH
26− cabal v2-install --enable-tests --run-tests . pandoc-citeproc
26+ cabal v2-install . pandoc-citeproc
27 - name: Install artifact
27 - name: Install artifact
29 export ARTIFACTS=./pandoc-nightly-linux-$(date +%Y-%m%-d)-${GITHUB_SHA}
29 export ARTIFACTS=./pandoc-nightly-linux-$(date +%Y-%m%-d)-${GITHUB_SHA}
@@ -49,18 +49,13 @@ jobs:
49 - name: Install dependencies
49 - name: Install dependencies
51 stack update
51 stack update
52− stack test --dependencies-only pandoc pandoc-citeproc
52+ stack build --dependencies-only pandoc pandoc-citeproc
53− - name: Build and test
53+ - name: Build artifacts
54 shell: cmd
54 shell: cmd
56− stack install --test pandoc pandoc-citeproc
57− - name: Install artifact
59− for /f "delims=" %%a in ('stack path --local-bin-path') do @set BINPATH=%%a
60 set ARTIFACTS=pandoc-nightly-windows-$(date +%Y-%m%-d)-${GITHUB_SHA}
56 set ARTIFACTS=pandoc-nightly-windows-$(date +%Y-%m%-d)-${GITHUB_SHA}
61 mkdir %ARTIFACTS%
57 mkdir %ARTIFACTS%
62− copy %BINPATH%\pandoc.exe %ARTIFACTS%/
58+ stack install --local-bin-path %ARTIFACTS% pandoc pandoc-citeproc
63− copy %BINPATH%\pandoc-citeproc.exe %ARTIFACTS%/
64 copy COPYRIGHT %ARTIFACTS%/COPYRIGHT.txt
59 copy COPYRIGHT %ARTIFACTS%/COPYRIGHT.txt
65 7z a nightly-windows.zip %ARTIFACTS%
60 7z a nightly-windows.zip %ARTIFACTS%
66 - uses: actions/upload-artifact@master
61 - uses: actions/upload-artifact@master
@@ -81,18 +76,13 @@ jobs:
81 - name: Install dependencies
76 - name: Install dependencies
83 ./stack update
78 ./stack update
84− ./stack test --dependencies-only pandoc pandoc-citeproc
79+ ./stack build --dependencies-only pandoc pandoc-citeproc
85− - name: Build and test
80+ - name: Build artifacts
87− ./stack install --test pandoc pandoc-citeproc
88− - name: Install artifact
90 export ARTIFACTS=./pandoc-nightly-macos-$(date +%Y-%m%-d)-${GITHUB_SHA}
82 export ARTIFACTS=./pandoc-nightly-macos-$(date +%Y-%m%-d)-${GITHUB_SHA}
91 mkdir -p ${ARTIFACTS}
83 mkdir -p ${ARTIFACTS}
92− cp $HOME/.local/bin/pandoc ${ARTIFACTS}/
84+ ./stack install --local-bin-path ${ARTIFACTS}/ pandoc pandoc-citeproc
93− cp $HOME/.local/bin/pandoc-citeproc ${ARTIFACTS}/
94 cp COPYRIGHT ${ARTIFACTS}/
85 cp COPYRIGHT ${ARTIFACTS}/
95− for f in $(find dist-newstyle -name 'pandoc*' -type f -executable); do cp $f ${ARTIFACTS}/; done
96 zip -r nightly-macos.zip ${ARTIFACTS}
86 zip -r nightly-macos.zip ${ARTIFACTS}
97 - uses: actions/upload-artifact@master
87 - uses: actions/upload-artifact@master