Skip to content

Different version syntax #3

Different version syntax

Different version syntax #3

Workflow file for this run

name: Arduino IDE Library CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
example:
- name: publish_and_subscribe
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 256dpi/MQTT@2.5.1
- 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 }}