Skip to content

Commit e4605ff

Browse files
committed
get cli version from arduino-app-cli
1 parent b542ab9 commit e4605ff

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/check-sketches-deps.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,23 @@ jobs:
88
compile-sketches:
99
runs-on: ubuntu-latest
1010
steps:
11+
- name: Checkout arduino-app-cli repository
12+
uses: actions/checkout@v4
13+
with:
14+
repository: arduino/arduino-app-cli
15+
16+
- name: Extract cli-version from go.mod
17+
id: get_cli_version
18+
run: |
19+
CLI_VERSION=$(grep 'github.com/arduino/arduino-cli ' go.mod | awk '{print $2}' | sed 's/^v//')
20+
echo "cli_version=$CLI_VERSION" >> $GITHUB_OUTPUT
21+
1122
- name: Checkout repository
1223
uses: actions/checkout@v4
1324

1425
- name: Verify sketches
1526
uses: arduino/compile-sketches@v1
1627
with:
28+
cli-version: ${{ steps.get_cli_version.outputs.cli_version }}
1729
fqbn: "arduino:zephyr:unoq"
1830
sketch-paths: "./examples"

0 commit comments

Comments
 (0)