Skip to content
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/check-sketches-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Compile sketches to verify dependencies
on:
pull_request:
permissions:
contents: read

jobs:
compile-sketches:
runs-on: ubuntu-latest
steps:
# Checkout arduino-app-cli to extract the version from go.mod file dynamically.
# This ensures that the same version of arduino-cli is used as a dependency.
- 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"