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' }}"