Test examples building in CI #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ '*' ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Arduino CLI | |
uses: arduino/setup-arduino-cli@v1.1.1 | |
- name: ZIP library | |
run: zip -r FlixPeriph.zip . | |
- name: Install ESP32 core | |
run: | | |
arduino-cli core update-index --additional-urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json | |
arduino-cli core install esp32:esp32 | |
- name: Install library | |
run: arduino-cli lib install --zip-path FlixPeriph.zip | |
- name: Build MPU9250 example for ESP32 | |
run: cd examples/MPU9250 && arduino-cli compile --fqbn esp32:esp32:esp32 | |
- name: Build MPU9250 example for ESP32 D1 Mini | |
run: cd examples/MPU9250 && arduino-cli compile --fqbn esp32:esp32:d1_mini |