From a1eb84c2a9ca81b739e018682c2ec4569ae16107 Mon Sep 17 00:00:00 2001 From: Leonid Meleshin Date: Wed, 24 Jul 2024 15:37:37 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20(Arduino):=20Build=20examples=20?= =?UTF-8?q?and=20lint=20library?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/arduino-ci.yml | 35 +++++++++++++++++++ .../workflows/{ci.yml => platformio-ci.yml} | 2 +- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/arduino-ci.yml rename .github/workflows/{ci.yml => platformio-ci.yml} (97%) diff --git a/.github/workflows/arduino-ci.yml b/.github/workflows/arduino-ci.yml new file mode 100644 index 0000000..8c5648c --- /dev/null +++ b/.github/workflows/arduino-ci.yml @@ -0,0 +1,35 @@ +on: + pull_request: + paths-ignore: + - "**/*.md" + push: + branches: + - master + - main + - develop + - support/* + paths-ignore: + - "**/*.md" + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: arduino/arduino-lint-action@v1 + + build-examples: + runs-on: ubuntu-latest + + strategy: + matrix: + fqbn: [ "esp32:esp32:esp32" ] + + steps: + - uses: actions/checkout@v4 + + - uses: arduino/compile-sketches@v1 + with: + fqbn: ${{ matrix.fqbn }} \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/platformio-ci.yml similarity index 97% rename from .github/workflows/ci.yml rename to .github/workflows/platformio-ci.yml index e38c17b..565edf0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/platformio-ci.yml @@ -63,4 +63,4 @@ jobs: pio ci --lib="." --board=${{ join(matrix.boards, ' --board=') }} ${{ matrix.nimble && '--project-option="lib_deps=h2zero/NimBLE-Arduino@^1.4.0"' || '' }} env: PLATFORMIO_CI_SRC: "./examples/${{ matrix.example }}/*.ino" - PLATFORMIO_BUILD_FLAGS: "-D BLESERIAL_USE_NIMBLE=${{ matrix.nimble && 'true' || 'false' }}" \ No newline at end of file + PLATFORMIO_BUILD_FLAGS: "-D BLESERIAL_USE_NIMBLE=${{ matrix.nimble && 'true' || 'false' }}"