diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-09-17 21:05:04 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-09-17 21:14:06 -0700 |
commit | d6c50af2212a1198169f3097f20a132f4afa4287 (patch) | |
tree | 52afcc9fa31e030648e2a5b8d090f6f11e7226b2 | |
parent | 369d348a9bd884b22e3be2a3d6c470668e29991d (diff) | |
download | pandoc-d6c50af2212a1198169f3097f20a132f4afa4287.tar.gz |
Fixes to nightly workflow.
-rw-r--r-- | .github/workflows/nightly.yml | 30 |
1 files changed, 10 insertions, 20 deletions
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 483df45a4..c9106f3cd 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -2,7 +2,7 @@ name: Nightly on: schedule: - - cron: '30 3 * * *' + - cron: '21 4 * * *' jobs: linux: @@ -19,11 +19,11 @@ jobs: run: | export PATH=/opt/cabal/bin:/opt/ghc/bin:$PATH cabal v2-update - cabal v2-build --dependencies-only --enable-tests . pandoc-citeproc - - name: Build and test + cabal v2-build --dependencies-only . pandoc-citeproc + - name: Build run: | export PATH=/opt/cabal/bin:/opt/ghc/bin:$PATH - cabal v2-install --enable-tests --run-tests . pandoc-citeproc + cabal v2-install . pandoc-citeproc - name: Install artifact run: | export ARTIFACTS=./pandoc-nightly-linux-$(date +%Y-%m%-d)-${GITHUB_SHA} @@ -49,18 +49,13 @@ jobs: - name: Install dependencies run: | stack update - stack test --dependencies-only pandoc pandoc-citeproc - - name: Build and test + stack build --dependencies-only pandoc pandoc-citeproc + - name: Build artifacts shell: cmd run: | - stack install --test pandoc pandoc-citeproc - - name: Install artifact - run: | - for /f "delims=" %%a in ('stack path --local-bin-path') do @set BINPATH=%%a set ARTIFACTS=pandoc-nightly-windows-$(date +%Y-%m%-d)-${GITHUB_SHA} mkdir %ARTIFACTS% - copy %BINPATH%\pandoc.exe %ARTIFACTS%/ - copy %BINPATH%\pandoc-citeproc.exe %ARTIFACTS%/ + stack install --local-bin-path %ARTIFACTS% pandoc pandoc-citeproc copy COPYRIGHT %ARTIFACTS%/COPYRIGHT.txt 7z a nightly-windows.zip %ARTIFACTS% - uses: actions/upload-artifact@master @@ -81,18 +76,13 @@ jobs: - name: Install dependencies run: | ./stack update - ./stack test --dependencies-only pandoc pandoc-citeproc - - name: Build and test - run: | - ./stack install --test pandoc pandoc-citeproc - - name: Install artifact + ./stack build --dependencies-only pandoc pandoc-citeproc + - name: Build artifacts run: | export ARTIFACTS=./pandoc-nightly-macos-$(date +%Y-%m%-d)-${GITHUB_SHA} mkdir -p ${ARTIFACTS} - cp $HOME/.local/bin/pandoc ${ARTIFACTS}/ - cp $HOME/.local/bin/pandoc-citeproc ${ARTIFACTS}/ + ./stack install --local-bin-path ${ARTIFACTS}/ pandoc pandoc-citeproc cp COPYRIGHT ${ARTIFACTS}/ - for f in $(find dist-newstyle -name 'pandoc*' -type f -executable); do cp $f ${ARTIFACTS}/; done zip -r nightly-macos.zip ${ARTIFACTS} - uses: actions/upload-artifact@master with: |