diff --git a/.github/workflows/build_arduino.yml b/.github/workflows/build_arduino.yml index 5ebc98b..039877c 100644 --- a/.github/workflows/build_arduino.yml +++ b/.github/workflows/build_arduino.yml @@ -2,27 +2,20 @@ name: Arduino CLI build on: pull_request: - branches: [master, 1.x] - types: [opened, reopened] + branches: [master, v1.x] paths: - ".github/workflows/build_arduino.yml" - "examples/**" push: - branches: [master, 1.x] + branches: [master, v1.x] paths: - ".github/workflows/build_arduino.yml" - "examples/**" jobs: - check_formatting: - uses: nRF24/.github/.github/workflows/cpp_lint.yaml@main - with: - ignore: '!examples|' - extensions: ino build: - needs: check_formatting uses: nRF24/.github/.github/workflows/build_arduino.yaml@main with: sketch-paths: | diff --git a/.github/workflows/build_linux.yml b/.github/workflows/build_linux.yml index e094ece..2cf2e51 100644 --- a/.github/workflows/build_linux.yml +++ b/.github/workflows/build_linux.yml @@ -2,8 +2,7 @@ name: Linux build on: pull_request: - branches: [master, 1.x] - types: [opened, reopened] + branches: [master, v1.x] paths: - "*.h" - "*.cpp" @@ -16,7 +15,7 @@ on: - "pyRF24Mesh/*" - ".github/workflows/build_linux.yml" push: - branches: [master, 1.x] + branches: [master, v1.x] paths: - "*.h" - "*.cpp" @@ -36,13 +35,8 @@ env: BUILD_TYPE: Release jobs: - check_formatting: - uses: nRF24/.github/.github/workflows/cpp_lint.yaml@main - with: - ignore: 'examples|examples_pico' using_cmake: - needs: check_formatting uses: nRF24/.github/.github/workflows/build_linux_cmake.yaml@main with: rf24mesh-ref: ${{ github.sha }} diff --git a/.github/workflows/build_platformIO.yml b/.github/workflows/build_platformIO.yml index 6ebbc5e..13ad585 100644 --- a/.github/workflows/build_platformIO.yml +++ b/.github/workflows/build_platformIO.yml @@ -2,8 +2,7 @@ name: PlatformIO build on: pull_request: - branches: [master, 1.x] - types: [opened, reopened] + branches: [master, v1.x] paths: - ".github/workflows/build_platformIO.yml" - "library.json" @@ -11,7 +10,7 @@ on: - "!examples/old_backups/**" - "!examples/rf24_ATTiny/**" push: - branches: [master, 1.x] + branches: [master, v1.x] paths: - ".github/workflows/build_platformIO.yml" - "library.json" @@ -28,13 +27,8 @@ jobs: with: deploy-release: ${{ github.event_name == 'release' }} - check_formatting: - uses: nRF24/.github/.github/workflows/cpp_lint.yaml@main - with: - extensions: ino - build: - needs: [check_formatting, validate_lib_json] + needs: [validate_lib_json] uses: nRF24/.github/.github/workflows/build_platformio.yaml@main with: example-path: ${{ matrix.example }} diff --git a/.github/workflows/build_rp2xxx.yml b/.github/workflows/build_rp2xxx.yml index 7ef4de9..0ec5fdf 100644 --- a/.github/workflows/build_rp2xxx.yml +++ b/.github/workflows/build_rp2xxx.yml @@ -2,7 +2,7 @@ name: Pico SDK build on: push: - branches: [master, 1.x] + branches: [master, v1.x] paths: - ".github/workflows/build_rp2xxx.yml" - "*.h" @@ -11,8 +11,7 @@ on: - "cmake/" - "examples_pico/*" pull_request: - branches: [master, 1.x] - types: [opened, reopened] + branches: [master, v1.x] paths: - ".github/workflows/build_rp2xxx.yml" - "*.h" @@ -22,13 +21,8 @@ on: - "examples_pico/*" jobs: - check_formatting: - uses: nRF24/.github/.github/workflows/cpp_lint.yaml@main - with: - ignore: '!examples_pico|' build: - needs: check_formatting uses: nRF24/.github/.github/workflows/build_pico_sdk.yaml@main with: board-id: ${{ matrix.board }} diff --git a/.github/workflows/clang_format.yml b/.github/workflows/clang_format.yml new file mode 100644 index 0000000..41105c1 --- /dev/null +++ b/.github/workflows/clang_format.yml @@ -0,0 +1,14 @@ +name: check code formatting + +on: + push: + branches: [master, v1.x] + pull_request: + branches: [master, v1.x] + +jobs: + check_formatting: + uses: nRF24/.github/.github/workflows/cpp_lint.yaml@main + with: + ignore: examples/old_backups|utility/RPi/bcm2835.h|utility/RPi/bcm2835.c + extensions: ino,c,cpp,h diff --git a/.github/workflows/doxygen.yml b/.github/workflows/doxygen.yml index 2e3b9c8..502802e 100644 --- a/.github/workflows/doxygen.yml +++ b/.github/workflows/doxygen.yml @@ -2,8 +2,7 @@ name: build Docs on: pull_request: - branches: [master, 1.x] - types: [opened, reopened] + branches: [master, v1.x] paths: - "*.h" - "docs/**" @@ -16,7 +15,7 @@ on: - "Doxyfile" - "library.properties" # get lib version from here push: - branches: [master, 1.x] + branches: [master, v1.x] paths: - "*.h" - "docs/**"