Skip to content

fix: add missing import to be ready to board manager esp32 3.x.x #19

fix: add missing import to be ready to board manager esp32 3.x.x

fix: add missing import to be ready to board manager esp32 3.x.x #19

Workflow file for this run

name: Run and test
on:
push:
paths-ignore:
- '**.md'
- '**.MD'
branches:
- "master"
- "develop"
- "ft**"
# Publish semver tags as releases.
tags: [ 'v*.*.*' ]
pull_request:
branches:
- "master"
- "develop"
# To run the workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
strategy:
matrix:
# esp32s2 is not supported.
# more info at https://github.com/crankyoldgit/IRremoteESP8266/issues/1922
esp-devices: [esp32, esp32s3]
name: Run and test
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Arduino CLI
uses: arduino/setup-arduino-cli@v1
- name: Init arduino-cli.yaml config file and apply custom configs
run: |
# init with defaults
arduino-cli config init
# enable_unsafe_install to be able to install libraries via git
arduino-cli config set library.enable_unsafe_install true
- name: Install Board support
run: |
arduino-cli core update-index
arduino-cli config add board_manager.additional_urls https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
arduino-cli core update-index
arduino-cli core install esp32:[email protected]
- name: Install libraries
run: |
arduino-cli lib update-index
# common libs
arduino-cli lib install "ArduinoJson"@7.1.0
arduino-cli lib install "HttpClient"@2.2.0
arduino-cli lib install "PubSubClient"@2.8.0
# specific libs for devices
arduino-cli lib install "IRremoteESP8266"@2.8.6
# to get a list of FQBN you can run: `arduino-cli board listall`
- name: Building firmwares for ${{ matrix.esp-devices }}
run: |
# Prepare sensor.h files based on `secrets-template`, because
# we don't need real config files to build all firmwares in CI.
cp secrets-template device-ac-beko/secrets.h
cp secrets-template device-ac-lg/secrets.h
# build ac-beko
cd device-ac-beko
arduino-cli compile --fqbn esp32:esp32:${{ matrix.esp-devices }} ./device-ac-beko.ino
cd ..
# build ac-lg
cd device-ac-lg
arduino-cli compile --fqbn esp32:esp32:${{ matrix.esp-devices }} ./device-ac-lg.ino
cd ..