Update and rename esp8266_boards to .esp8266_boards.yml #61
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: Compile Examples | |
on: [push, pull_request] | |
jobs: | |
build-arduino: | |
runs-on: ubuntu-latest | |
if: contains(github.event.head_commit.message, '[arduino]') | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: arduino/compile-sketches@v1 | |
with: | |
libraries: | | |
- source-path: ./ | |
build-esp8266: | |
runs-on: ubuntu-latest | |
if: contains(github.event.head_commit.message, '[esp8266]') | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install Arduino CLI | |
uses: arduino/setup-arduino-cli@v1 | |
- name: Install ESP8266 platform | |
run: | | |
arduino-cli core install esp8266:esp8266 --additional_urls http://arduino.esp8266.com/stable/package_esp8266com_index.json | |
- name: Compile code | |
run: | | |
arduino-cli compile --fqbn esp8266:esp8266:d1_mini ./examples/Wemos_D1_mini_AM2302_Sensor_Array_Example/Wemos_D1_mini_AM2302_Sensor_Array_Example.ino |