githubci.yml 887 B

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