aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-09-22 09:01:29 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-09-22 09:01:29 -0700
commit4beca429a4dafb4ea055fe0187a99bd00595b2e9 (patch)
tree25e7cbeb1a4db340539758f02f4486d38baea70a
parent88ba9a312785ba67ef0150c652b2026f69c0f0ee (diff)
downloadpandoc-4beca429a4dafb4ea055fe0187a99bd00595b2e9.tar.gz
ci action: use list of paths to ignore.
-rw-r--r--.github/workflows/ci.yml68
1 files changed, 31 insertions, 37 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 071098882..c339282d2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -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