Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,34 @@ on:
types: [published]

jobs:
changes:
name: Check for source changes
runs-on: ubuntu-latest
outputs:
code: ${{ steps.filter.outputs.code == 'true' || github.event_name == 'release' }}
steps:
- uses: actions/checkout@v6
- uses: dorny/paths-filter@v4
id: filter
if: github.event_name != 'release'
with:
filters: |
code:
- '!**/*.md'
- '!docs/**'
- '!samples/**'
- '!Jenkinsfile*'
- '!.travis.yml'
- '!dropbox-deployment.yml'
- '!.gitignore'
- '!LICENSE'
- '!COPYRIGHT'
- '!CONTRIB'
- '!Changelog*'

build:
needs: changes
if: needs.changes.outputs.code == 'true'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -106,6 +133,8 @@ jobs:
# The following was taken from https://cibuildwheel.readthedocs.io/en/stable/deliver-to-pypi/
make_sdist:
name: Make SDist
needs: changes
if: needs.changes.outputs.code == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
Expand Down
38 changes: 38 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,44 @@ trigger:
tags:
include:
- 'v*'
paths:
exclude:
- '*.md'
- docs/*
- samples/*
- etc/*
- macbuild/*
- ci-scripts/*
- scripts/*
- .travis.yml
- Jenkinsfile*
- .gitignore
- LICENSE
- COPYRIGHT
- CONTRIB
- Changelog*

pr:
branches:
include:
- master
- staging
paths:
exclude:
- '*.md'
- docs/*
- samples/*
- etc/*
- macbuild/*
- ci-scripts/*
- scripts/*
- .travis.yml
- Jenkinsfile*
- .gitignore
- LICENSE
- COPYRIGHT
- CONTRIB
- Changelog*

jobs:
- job: Build
Expand Down
Loading