Initial commit #6
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 config init | |
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:esp32 | |
# Step 4: Install Required Libraries | |
- name: Install Arduino Libraries | |
run: | | |
arduino-cli lib install "ArduinoJson" | |
arduino-cli lib install "Adafruit GFX Library" | |
arduino-cli lib install "Adafruit ST7735 and ST7789 Library" | |
# 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 ./arduino_projects/esp-environment-sensor/esp-environment-sensor |