diff --git a/.github/workflows/arduino-report.yml b/.github/workflows/arduino-report.yml new file mode 100644 index 0000000..86a369a --- /dev/null +++ b/.github/workflows/arduino-report.yml @@ -0,0 +1,8 @@ +on: + schedule: + - cron: '*/5 * * * *' +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: arduino/report-size-deltas@v1 diff --git a/.github/workflows/arduino.yml b/.github/workflows/arduino.yml new file mode 100644 index 0000000..3a28cd8 --- /dev/null +++ b/.github/workflows/arduino.yml @@ -0,0 +1,56 @@ +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: | + - bitcoinSwitch + libraries: | + - name: WebSockets + - name: ArduinoJson + cli-compile-flags: | + - --warnings="none" + + - 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 diff --git a/installer/index.html b/installer/index.html index a2b3552..da1d71a 100644 --- a/installer/index.html +++ b/installer/index.html @@ -105,10 +105,16 @@