diff --git a/.github/workflows/build_fw.yml b/.github/workflows/build_fw.yml index 257a589e4..2523ccefb 100644 --- a/.github/workflows/build_fw.yml +++ b/.github/workflows/build_fw.yml @@ -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: diff --git a/.github/workflows/linux_cpn.yml b/.github/workflows/linux_cpn.yml index c282a5274..b3286efb5 100644 --- a/.github/workflows/linux_cpn.yml +++ b/.github/workflows/linux_cpn.yml @@ -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: diff --git a/.github/workflows/macosx_cpn.yml b/.github/workflows/macosx_cpn.yml index cdee31fcd..00abb8c08 100644 --- a/.github/workflows/macosx_cpn.yml +++ b/.github/workflows/macosx_cpn.yml @@ -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 diff --git a/.github/workflows/win_cpn-64.yml b/.github/workflows/win_cpn-64.yml index 44cfa0ed6..e04af6dad 100644 --- a/.github/workflows/win_cpn-64.yml +++ b/.github/workflows/win_cpn-64.yml @@ -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