Initial commit #2
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: ESP Environment Sensor | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Arduino CLI | |
uses: arduino/setup-arduino-cli@v2 | |
# We then install the platform, which one will be determined | |
# dynamically by the build matrix. | |
- name: Install platform | |
run: | | |
arduino-cli core update-index | |
arduino-cli core install esp32:esp32 | |
# Finally, we compile the sketch, using the FQBN that was set | |
# in the build matrix. | |
- name: Compile Sketch | |
run: arduino-cli compile --fqbn esp32:esp32:lolin32 ./blink |