| 1 | name: Arduino Library CI |
| 2 | |
| 3 | on: [pull_request, push, repository_dispatch] |
| 4 | |
| 5 | jobs: |
| 6 | build: |
| 7 | runs-on: ubuntu-latest |
| 8 | |
| 9 | steps: |
| 10 | - uses: actions/setup-python@v4 |
| 11 | with: |
| 12 | python-version: '3.x' |
| 13 | - uses: actions/checkout@v3 |
| 14 | - uses: actions/checkout@v3 |
| 15 | with: |
| 16 | repository: adafruit/ci-arduino |
| 17 | path: ci |
| 18 | |
| 19 | - name: Install the prerequisites |
| 20 | run: bash ci/actions_install.sh |
| 21 | |
| 22 | - name: Check for correct code formatting with clang-format |
| 23 | run: python3 ci/run-clang-format.py -e "ci/*" -e "bin/*" -r . |
| 24 | |
| 25 | - name: Check for correct documentation with doxygen |
| 26 | env: |
| 27 | GH_REPO_TOKEN: ${{ secrets.GH_REPO_TOKEN }} |
| 28 | PRETTYNAME : "Adafruit Bus IO Library" |
| 29 | run: bash ci/doxy_gen_and_deploy.sh |
| 30 | |
| 31 | - name: Test the code on supported platforms |
| 32 | run: python3 ci/build_platform.py main_platforms zero feather32u4 |
| 33 | |