Skip to content

Delete workflow for compiling Arduino Uno examples, update workflow t… #7

Delete workflow for compiling Arduino Uno examples, update workflow t…

Delete workflow for compiling Arduino Uno examples, update workflow t… #7

Workflow file for this run

name: Compile Examples
on:
- push
- pull_request
jobs:
compile:
runs-on: ubuntu-latest
strategy:
matrix:
board:
- fqbn: arduino:avr:uno
artifact-name-suffix: arduino-avr-uno
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Compile sketches
uses: arduino/compile-sketches@v1
with:
fqbn: ${{ matrix.board.fqbn }}
enable-deltas-report: true
enable-warnings-report: true
sketches-report-path: ${{ vars.SKETCHES_REPORTS_PATH }}
libraries: |
- source-path: ./
- source-url: https://github.com/johnrickman/LiquidCrystal_I2C.git
- source-url: https://github.com/feilipu/Arduino_FreeRTOS_Library.git
- source-url: https://github.com/mprograms/SimpleRotary.git
- name: Upload sketches reports
uses: actions/upload-artifact@v4
with:
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
path: ${{ vars.SKETCHES_REPORTS_PATH }}
report:
needs: compile
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Download sketches reports artifacts
uses: actions/download-artifact@v4
with:
path: ${{ vars.SKETCHES_REPORTS_PATH }}
- name: Report size deltas
uses: arduino/report-size-deltas@v1
with:
sketches-reports-source: ${{ vars.SKETCHES_REPORTS_PATH }}