CI: ignore non-target platforms / CI workflows from each CI workflow (#333)

* ignore non-target platforms / CI workflows from each CI workflow

* Add missing exclusions, try to fix concurrency

* Try different concurrency setting

* Concurrency needs to be at workflow rather than job level

* trivial commit to test canceling previous CI jobs

* Remove concurrency from android-ci

* Try without wildcard exclusions of CI workflows

* Try more specific path exclusions in other CI workflows

* Minor change to see if other workflows are triggered
This commit is contained in:
Brendan Ward
2022-06-16 11:31:59 -07:00
committed by GitHub
parent 03dc955683
commit 6dbc711e07
8 changed files with 307 additions and 64 deletions

View File

@@ -3,32 +3,73 @@ name: macos-ci
on:
workflow_dispatch:
push:
branches:
- main
tags-ignore:
- '**'
paths-ignore:
- "platform/android/**"
- "platform/qt/**"
- ".github/**"
- "README.md"
- ".gitignore"
branches:
- main
- "README.md"
# ignore other platforms
- "platform/android/**"
- "platform/glfw/**"
- "platform/ios/**"
- "platform/node/**"
- "platform/qt/**"
# ignore CI for other platforms
- ".github/FUNDING.yml"
- ".github/workflows/android-ci.yml"
- ".github/workflows/android-ci-pull.yml"
- ".github/workflows/android-docker-base.yml"
- ".github/workflows/android-docker-ndk-r21b.yml"
- ".github/workflows/gh-pages-android-api.yml"
- ".github/workflows/gh-pages-ios-api.yml"
- ".github/workflows/ios-ci.yml"
- ".github/workflows/ios-pre-release.yml"
- ".github/workflows/ios-release.yml"
- ".github/workflows/macos-release.yml"
- ".github/workflows/node-ci.yml"
- ".github/workflows/qt-ci-windows.yml"
- ".github/workflows/qt-ci.yml"
- ".github/workflows/update-gl-js.yml"
pull_request:
branches:
- main
paths-ignore:
- "platform/android/**"
- "platform/qt/**"
- ".github/**"
- "README.md"
- ".gitignore"
- "README.md"
# ignore other platforms
- "platform/android/**"
- "platform/glfw/**"
- "platform/ios/**"
- "platform/node/**"
- "platform/qt/**"
# ignore CI for other platforms
- ".github/FUNDING.yml"
- ".github/workflows/android-ci.yml"
- ".github/workflows/android-ci-pull.yml"
- ".github/workflows/android-docker-base.yml"
- ".github/workflows/android-docker-ndk-r21b.yml"
- ".github/workflows/gh-pages-android-api.yml"
- ".github/workflows/gh-pages-ios-api.yml"
- ".github/workflows/ios-ci.yml"
- ".github/workflows/ios-pre-release.yml"
- ".github/workflows/ios-release.yml"
- ".github/workflows/macos-release.yml"
- ".github/workflows/node-ci.yml"
- ".github/workflows/qt-ci-windows.yml"
- ".github/workflows/qt-ci.yml"
- ".github/workflows/update-gl-js.yml"
concurrency:
# cancel jobs on PRs only
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build:
runs-on: macos-10.15
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
BUILDTYPE: Debug
HOMEBREW_NO_AUTO_UPDATE: 1