Added var for duration #72
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: arduino | |
on: [ push, pull_request ] | |
jobs: | |
build-for-esp32: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
fqbn: | |
- esp32:esp32:esp32 | |
# - esp32:esp32:esp32s3 | |
# - esp32:esp32:esp32c3 | |
# future bluetooth chips | |
#- esp32:esp32:esp32c2 | |
#- esp32:esp32:esp32c6 | |
#- esp32:esp32:esp32h2 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: arduino/compile-sketches@v1 | |
with: | |
enable-deltas-report: true | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
fqbn: ${{ matrix.fqbn }} | |
platforms: | | |
- name: esp32:esp32 | |
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json | |
sketch-paths: | | |
- nostrZapLamp | |
cli-compile-flags: | | |
- --warnings="none" | |
- --build-property | |
- build.partitions=min_spiffs | |
- --build-property | |
- upload.maximum_size=1966080 | |
libraries: | | |
- name: WebSockets | |
- name: ArduinoJson | |
- name: uBitcoin | |
- name: base64 | |
- name: Button | |
- name: WiFiManager | |
- name: Nostr | |
# - name: QRCode | |
# - name: ESP32Ping | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: sketches-reports | |
path: sketches-reports | |
report: | |
needs: build-for-esp32 | |
if: github.event_name == 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
# This step is needed to get the size data produced by the compile jobs | |
- name: Download sketches reports artifact | |
uses: actions/download-artifact@v2 | |
with: | |
name: sketches-reports | |
path: sketches-reports | |
- uses: arduino/report-size-deltas@v1 | |
with: | |
sketches-reports-source: sketches-reports |