mirror of
https://github.com/raspberrypi/pico-sdk.git
synced 2025-04-16 14:42:54 +00:00
filter pull request source for pull_request to avoid IAR (#1289)
This commit is contained in:
parent
67b0a11d3e
commit
18479e0300
9
.github/workflows/cmake.yml
vendored
9
.github/workflows/cmake.yml
vendored
@ -4,8 +4,6 @@ on:
|
|||||||
branches-ignore:
|
branches-ignore:
|
||||||
- 'iar/**'
|
- 'iar/**'
|
||||||
pull_request:
|
pull_request:
|
||||||
branches-ignore:
|
|
||||||
- 'iar/**'
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
||||||
@ -13,7 +11,8 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
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]
|
runs-on: [self-hosted, Linux, X64]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -39,8 +38,8 @@ jobs:
|
|||||||
# access regardless of the host operating system
|
# access regardless of the host operating system
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ${{github.workspace}}/build
|
working-directory: ${{github.workspace}}/build
|
||||||
# Note the current convention is to use the -S and -B options here to specify source
|
# 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.
|
# 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
|
# 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
|
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DPICO_SDK_TESTS_ENABLED=1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user