chore(ci): allow skipping specific CI runs for PRs (#6691)

This commit is contained in:
Peter Feerick
2025-10-19 15:36:58 +10:00
committed by GitHub
parent 79774e216f
commit 388f7ca552
4 changed files with 15 additions and 9 deletions
+6
View File
@@ -29,6 +29,9 @@ jobs:
test:
name: Run tests
runs-on: ubuntu-latest
if: |
github.event_name != 'pull_request' ||
!contains(github.event.pull_request.labels.*.name, 'ci: skip-fw')
strategy:
matrix:
target:
@@ -79,6 +82,9 @@ jobs:
name: Run builds
needs: test
runs-on: ubuntu-latest
if: |
github.event_name != 'pull_request' ||
!contains(github.event.pull_request.labels.*.name, 'ci: skip-fw')
strategy:
matrix:
target:
+3
View File
@@ -28,6 +28,9 @@ env:
jobs:
build:
runs-on: ubuntu-latest
if: |
github.event_name != 'pull_request' ||
!contains(github.event.pull_request.labels.*.name, 'ci: skip-cpn-linux')
container:
image: ghcr.io/edgetx/edgetx-dev:latest
volumes:
+3 -5
View File
@@ -28,12 +28,10 @@ env:
jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: macos-13
if: |
github.event_name != 'pull_request' ||
!contains(github.event.pull_request.labels.*.name, 'ci: skip-cpn-macos')
steps:
- name: Select XCode version
uses: maxim-lobanov/setup-xcode@v1
+3 -4
View File
@@ -33,11 +33,10 @@ env:
jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: windows-2022
if: |
github.event_name != 'pull_request' ||
!contains(github.event.pull_request.labels.*.name, 'ci: skip-cpn-win')
defaults:
run:
shell: bash