Hello everyone!
I wrote a GitHub actions workflow here to check every commit and report sketches size. This is my workflow:
name: Compile Sketch
on:
- push
- pull_request
- workflow_dispatch
env:
SKETCHES_REPORTS_PATH: sketches-reports
SKETCHES_REPORTS_ARTIFACT_NAME: Cookie-Cats
jobs:
compile-sketch:
runs-on: ubuntu-latest
strategy:
matrix:
fqbn:
- "esp8266:esp8266:nodemcu"
- "esp8266:esp8266:d1_mini"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Compile sketch
uses: arduino/compile-sketches@v1
with:
fqbn: ${{ matrix.fqbn }}
platforms: |
- name: esp8266:esp8266
source-url: https://arduino.esp8266.com/stable/package_esp8266com_index.json
version: 3.1.2
sketch-paths: |
- ./Cookie-Cats/
libraries: |
- name: ArduinoJson
version: 6.21.4
- name: TickTwo
version: 4.4.0
- name: PracticalCrypto
version: 0.1.0
source-url: https://github.com/gutierrezps/PracticalCrypto.git
enable-deltas-report: true
sketches-report-path: ${{ env.SKETCHES_REPORTS_PATH }}
- name: Upload sketches report to workflow artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }}
path: ${{ env.SKETCHES_REPORTS_PATH }}
report:
needs: compile-sketch # Wait for the compile job to finish to get the data for the report
if: github.event_name == 'pull_request' # Only run the job when the workflow is triggered by a pull request
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
# This step is needed to get the size data produced by the compile jobs
- name: Download sketches reports artifact
uses: actions/download-artifact@v3
with:
name: ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }}
path: ${{ env.SKETCHES_REPORTS_PATH }}
- uses: arduino/report-size-deltas@v1
with:
sketches-reports-source: ${{ env.SKETCHES_REPORTS_PATH }}
But I only get N/A in report like this:
{
"commit_hash": "4392bd2796014ca9ea2afc8faee316c8a6a35cd7",
"commit_url": "https://github.com/Cookie-Cats/Cookie-Cats/commit/4392bd2796014ca9ea2afc8faee316c8a6a35cd7",
"boards": [
{
"board": "esp8266:esp8266:nodemcu",
"sketches": [
{
"name": "Cookie-Cats",
"compilation_success": true,
"sizes": [
{
"name": "flash",
"maximum": "N/A",
"current": {
"absolute": "N/A",
"relative": "N/A"
}
},
{
"name": "RAM for global variables",
"maximum": "N/A",
"current": {
"absolute": "N/A",
"relative": "N/A"
}
}
]
}
],
"sizes": [
{
"name": "flash",
"maximum": "N/A"
},
{
"name": "RAM for global variables",
"maximum": "N/A"
}
]
}
]
}
I’m new to Arduino and I’m sorry that I don’t know how to fix it. I will so appreciate if you could help me to fix this problem. Thanks!