Skip to content

Add CI workflow to check that sketches compile #29

Add CI workflow to check that sketches compile

Add CI workflow to check that sketches compile #29

name: Compile sketches to verify dependencies
on:
pull_request:
permissions:
contents: read
jobs:
compile-sketches:
runs-on: ubuntu-latest
steps:
- name: Checkout arduino-app-cli repository
uses: actions/checkout@v4
with:
repository: arduino/arduino-app-cli
- name: Extract cli-version from go.mod
id: get_cli_version
run: |
CLI_VERSION=$(grep 'github.com/arduino/arduino-cli ' go.mod | awk '{print $2}' | sed 's/^v//')
echo "cli_version=$CLI_VERSION" >> $GITHUB_OUTPUT
- name: Checkout repository
uses: actions/checkout@v4
- name: Verify sketches
uses: arduino/compile-sketches@v1
with:
cli-version: ${{ steps.get_cli_version.outputs.cli_version }}
fqbn: "arduino:zephyr:unoq"
sketch-paths: "./examples"