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: Arduino IDE Library CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
example: | |
- name: sleeping_node | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup Arduino CLI | |
uses: arduino/setup-arduino-cli@v2 | |
- name: Install platform | |
run: | | |
arduino-cli config init | |
arduino-cli config set board_manager.additional_urls "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json" | |
arduino-cli config set library.enable_unsafe_install true | |
arduino-cli core update-index | |
arduino-cli core install esp32:esp32@3.0.2 | |
arduino-cli lib install EspNowNetworkShared | |
- name: Install repo as library | |
run: | | |
mkdir -p "$HOME/Arduino/libraries" | |
ln -s "$PWD" "$HOME/Arduino/libraries/." | |
- name: Compile Sketch | |
run: arduino-cli compile --fqbn esp32:esp32:esp32 examples/arduino/${{ matrix.example.name }} |