42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: Arduino Library CI
|
|
|
|
on: [pull_request, push, repository_dispatch]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/setup-python@v1
|
|
with:
|
|
python-version: '3.x'
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/checkout@v2
|
|
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 main_platforms
|
|
|
|
- name: clang
|
|
run: python3 ci/run-clang-format.py -r ./src/Adafruit_*
|
|
|
|
|
|
- name: doxygen
|
|
env:
|
|
GH_REPO_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
|
|
PRETTYNAME : "Adafruit VL53L1X Library"
|
|
run: bash ci/doxy_gen_and_deploy.sh
|
|
|
|
- name: Upload build artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: ${{ github.event.repository.name }}.${{ github.sha }}
|
|
path: |
|
|
examples/*/build/*/*.hex
|
|
examples/*/build/*/*.bin
|
|
examples/*/build/*/*.uf2 |