ci action: use list of paths to ignore.

This commit is contained in:
John MacFarlane
2019-09-22 09:01:29 -07:00
parent 88ba9a3127
commit 4beca429a4
+31 -37
View File
@@ -1,27 +1,36 @@
name: CI tests
on: [push, pull_request]
# paths:
# - '*'
# - '.github/workflows/haskell.yml'
# - '!MANUAL.txt'
# - '!/doc/*'
# - '!/tools/*'
# - '!/linux/*'
# - '!/macos/*'
# - '!/windows/*'
# - '!/man/*'
# - '!AUTHORS.md'
# - '!BUGS'
# - '!CONTRIBUTING.md'
# - '!README.md'
# - '!INSTALL.md'
# - '!COPYRIGHT'
# - '!COPYING.md'
# - '!README.template'
# - '!RELEASE_CHECKLIST'
# - '!appveyor.yml'
# - '!changelog'
on:
push:
paths-ignore:
- 'doc/**'
- 'MANUAL.txt'
- '*.md'
- 'RELEASE_CHECKLIST'
- 'BUGS'
- 'changelog'
- 'README.template'
- 'appveyor.yml'
- 'tools/**'
- 'linux/**'
- 'macos/**'
- 'windows/**'
- 'man/**'
pull_request:
paths_ignore:
- 'doc/**'
- 'MANUAL.txt'
- '*.md'
- 'RELEASE_CHECKLIST'
- 'BUGS'
- 'changelog'
- 'README.template'
- 'appveyor.yml'
- 'tools/**'
- 'linux/**'
- 'macos/**'
- 'windows/**'
- 'man/**'
jobs:
linux:
@@ -60,21 +69,6 @@ jobs:
# fail if warnings in local build
! grep -q "[Ww]arning:" build.log
# ARTIFACTS: Currently disabled. The executables are large and
# if we do produce artifacts, we should zip them. We also
# might consider doing this only nightly and stripping.
# The code is included below in case we want to re-enable it.
#
# - name: Install artifact
# run: |
# export PATH=/opt/cabal/bin:/opt/ghc/bin:$PATH
# mkdir -p ./artifacts
# for f in $(find dist-newstyle -name 'pandoc*' -type f -executable); do cp $f ./artifacts/; done
# - uses: actions/upload-artifact@master
# with:
# name: pandoc-linux
# path: ./artifacts/pandoc
windows:
runs-on: windows-latest