githubci.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. name: Arduino Library CI
  2. on: [pull_request, push, repository_dispatch]
  3. jobs:
  4. clang-format:
  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: pre-install
  16. run: bash ci/actions_install.sh
  17. - name: clang
  18. run: python3 ci/run-clang-format.py -e "ci/*" -e "bin/*" -r .
  19. build:
  20. runs-on: ubuntu-latest
  21. needs: clang-format
  22. steps:
  23. - uses: actions/setup-python@v4
  24. with:
  25. python-version: '3.x'
  26. - uses: actions/checkout@v3
  27. - uses: actions/checkout@v3
  28. with:
  29. repository: adafruit/ci-arduino
  30. path: ci
  31. - name: pre-install
  32. run: bash ci/actions_install.sh
  33. - name: test platforms
  34. run: python3 ci/build_platform.py main_platforms
  35. - name: clang
  36. run: python3 ci/run-clang-format.py -e "ci/*" -e "bin/*" -r .
  37. - name: doxygen
  38. env:
  39. GH_REPO_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
  40. PRETTYNAME : "DHT sensor library"
  41. run: bash ci/doxy_gen_and_deploy.sh