Unverified Commit 374280cc authored by Jan Procházka's avatar Jan Procházka Committed by GitHub

[CI] Add to Boards Test check if build.board is uppercase (#8950)

* Add check if build.board is uppercase

* echo matrix.fqbn
parent b811ea40
......@@ -45,6 +45,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
- name: Check if build.board is uppercase
run: |
board_name=$(echo ${{ matrix.fqbn }} | awk -F':' '{print $NF}')
if grep -q "^$board_name.build.board=[A-Z0-9_]*$" boards.txt; then
echo "$board_name.build.board is valid.";
else
echo "Error: $board_name.build.board is not uppercase!";
exit 1;
fi
- name: Compile sketch
uses: P-R-O-C-H-Y/compile-sketches@main
with:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment