Skip to content

Commit

Permalink
filter pull request source for pull_request to avoid IAR (raspberrypi…
Browse files Browse the repository at this point in the history
  • Loading branch information
kilograham authored Feb 28, 2023
1 parent 67b0a11 commit 18479e0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ on:
branches-ignore:
- 'iar/**'
pull_request:
branches-ignore:
- 'iar/**'

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
if: github.repository_owner == 'raspberrypi'
# cannot specify filter for pull_request in on: above, so do it here
if: github.repository_owner == 'raspberrypi' && (github.event_name != 'pull_request' || !startsWith(github.head_ref, 'iar/'))
runs-on: [self-hosted, Linux, X64]

steps:
Expand All @@ -39,8 +38,8 @@ jobs:
# access regardless of the host operating system
shell: bash
working-directory: ${{github.workspace}}/build
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPICO_SDK_TESTS_ENABLED=1

Expand Down

0 comments on commit 18479e0

Please sign in to comment.