Skip to content

Update c-cpp.yml

Update c-cpp.yml #2

Workflow file for this run

name: Arduino Build
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
# First of all, we clone the repo using the `checkout` action.
- name: Checkout
uses: actions/checkout@v4
# We use the `arduino/setup-arduino-cli` action to install and
# configure the Arduino CLI on the system.
- name: Setup Arduino CLI
uses: arduino/setup-arduino-cli@v1
# We then install the platform, which one will be determined
# dynamically by the build matrix.
- name: Install platform
run: |
arduino-cli core update-index
arduino-cli core install ${{ matrix.arduino-platform }}
- name: Build Arduino project
run: arduino-cli compile --board arduino:avr:uno --output ./build/output.hex