57 lines
1.4 KiB
YAML
57 lines
1.4 KiB
YAML
name: Arduino Library CI
|
|
|
|
on: [pull_request, push, repository_dispatch]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
arduino-platform: ["uno", "leonardo", "mega2560", "esp8266", "esp32",
|
|
"zero", "metro_m4", "nrf52840", "pybadge",
|
|
"hallowing_m4", "cpb", "cpx_ada", "pyportal",
|
|
"feather_rp2040"]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.8'
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
repository: adafruit/ci-arduino
|
|
path: ci
|
|
|
|
- name: pre-install
|
|
run: bash ci/actions_install.sh
|
|
|
|
- name: test platforms
|
|
run: python3 ci/build_platform.py ${{ matrix.arduino-platform }}
|
|
|
|
clang_and_doxy:
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
steps:
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.x'
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
repository: adafruit/ci-arduino
|
|
path: ci
|
|
|
|
- name: pre-install
|
|
run: bash ci/actions_install.sh
|
|
|
|
- name: clang
|
|
run: python3 ci/run-clang-format.py -e "ci/*" -e "bin/*" -r .
|
|
|
|
- name: doxygen
|
|
env:
|
|
GH_REPO_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
|
|
PRETTYNAME : "Adafruit ImageReader Library"
|
|
run: bash ci/doxy_gen_and_deploy.sh
|