@@ -2,7 +2,7 @@ name: Nightly
22
33on:
44 schedule:
5− - cron: '30 3 * * *'
5+ - cron: '21 4 * * *'
66
77jobs:
88 linux:
@@ -19,11 +19,11 @@ jobs:
1919 run: |
2020 export PATH=/opt/cabal/bin:/opt/ghc/bin:$PATH
2121 cabal v2-update
22− cabal v2-build --dependencies-only --enable-tests . pandoc-citeproc
23− - name: Build and test
22+ cabal v2-build --dependencies-only . pandoc-citeproc
23+ - name: Build
2424 run: |
2525 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
2727 - name: Install artifact
2828 run: |
2929 export ARTIFACTS=./pandoc-nightly-linux-$(date +%Y-%m%-d)-${GITHUB_SHA}
@@ -49,18 +49,13 @@ jobs:
4949 - name: Install dependencies
5050 run: |
5151 stack update
52− stack test --dependencies-only pandoc pandoc-citeproc
53− - name: Build and test
52+ stack build --dependencies-only pandoc pandoc-citeproc
53+ - name: Build artifacts
5454 shell: cmd
5555 run: |
56− stack install --test pandoc pandoc-citeproc
57− - name: Install artifact
58− run: |
59− for /f "delims=" %%a in ('stack path --local-bin-path') do @set BINPATH=%%a
6056 set ARTIFACTS=pandoc-nightly-windows-$(date +%Y-%m%-d)-${GITHUB_SHA}
6157 mkdir %ARTIFACTS%
62− copy %BINPATH%\pandoc.exe %ARTIFACTS%/
63− copy %BINPATH%\pandoc-citeproc.exe %ARTIFACTS%/
58+ stack install --local-bin-path %ARTIFACTS% pandoc pandoc-citeproc
6459 copy COPYRIGHT %ARTIFACTS%/COPYRIGHT.txt
6560 7z a nightly-windows.zip %ARTIFACTS%
6661 - uses: actions/upload-artifact@master
@@ -81,18 +76,13 @@ jobs:
8176 - name: Install dependencies
8277 run: |
8378 ./stack update
84− ./stack test --dependencies-only pandoc pandoc-citeproc
85− - name: Build and test
86− run: |
87− ./stack install --test pandoc pandoc-citeproc
88− - name: Install artifact
79+ ./stack build --dependencies-only pandoc pandoc-citeproc
80+ - name: Build artifacts
8981 run: |
9082 export ARTIFACTS=./pandoc-nightly-macos-$(date +%Y-%m%-d)-${GITHUB_SHA}
9183 mkdir -p ${ARTIFACTS}
92− cp $HOME/.local/bin/pandoc ${ARTIFACTS}/
93− cp $HOME/.local/bin/pandoc-citeproc ${ARTIFACTS}/
84+ ./stack install --local-bin-path ${ARTIFACTS}/ pandoc pandoc-citeproc
9485 cp COPYRIGHT ${ARTIFACTS}/
95− for f in $(find dist-newstyle -name 'pandoc*' -type f -executable); do cp $f ${ARTIFACTS}/; done
9686 zip -r nightly-macos.zip ${ARTIFACTS}
9787 - uses: actions/upload-artifact@master
9888 with: