chore(ci): allow skipping specific CI runs for PRs (#6691)
This commit is contained in:
@@ -29,6 +29,9 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: |
|
||||||
|
github.event_name != 'pull_request' ||
|
||||||
|
!contains(github.event.pull_request.labels.*.name, 'ci: skip-fw')
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
target:
|
target:
|
||||||
@@ -79,6 +82,9 @@ jobs:
|
|||||||
name: Run builds
|
name: Run builds
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: |
|
||||||
|
github.event_name != 'pull_request' ||
|
||||||
|
!contains(github.event.pull_request.labels.*.name, 'ci: skip-fw')
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
target:
|
target:
|
||||||
|
|||||||
@@ -28,6 +28,9 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: |
|
||||||
|
github.event_name != 'pull_request' ||
|
||||||
|
!contains(github.event.pull_request.labels.*.name, 'ci: skip-cpn-linux')
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/edgetx/edgetx-dev:latest
|
image: ghcr.io/edgetx/edgetx-dev:latest
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -28,12 +28,10 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
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
|
runs-on: macos-13
|
||||||
|
if: |
|
||||||
|
github.event_name != 'pull_request' ||
|
||||||
|
!contains(github.event.pull_request.labels.*.name, 'ci: skip-cpn-macos')
|
||||||
steps:
|
steps:
|
||||||
- name: Select XCode version
|
- name: Select XCode version
|
||||||
uses: maxim-lobanov/setup-xcode@v1
|
uses: maxim-lobanov/setup-xcode@v1
|
||||||
|
|||||||
@@ -33,11 +33,10 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
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
|
runs-on: windows-2022
|
||||||
|
if: |
|
||||||
|
github.event_name != 'pull_request' ||
|
||||||
|
!contains(github.event.pull_request.labels.*.name, 'ci: skip-cpn-win')
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user