Skip to content

Commit

Permalink
CI: Explicitly check for board support
Browse files Browse the repository at this point in the history
... because the test running clause would not test on its own and fail
on missing feature requirements
  • Loading branch information
chrysn committed Nov 24, 2023
1 parent 1542220 commit d633e3c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/buildtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ jobs:
echo "Building ${DIRS} on ${{ matrix.board }}"
echo "::echo ::on"
for D in ${DIRS}; do
cd ${D}
echo "::group::Building ${D}"
# By running buildtest instead of all, we just skip boards that don't
# satisfy some requirements for some test
BOARDS=${{ matrix.board }} make buildtest BUILDTEST_MAKE_REDIRECT=''
cd ${D}
BOARDS=${{ matrix.board }} make info-boards-supported | grep -q . || ( cd -; continue )
BOARD=${{ matrix.board }} make all
echo "::endgroup::"
if make test/available BOARD=native && [ "native" = "${{ matrix.board }}" ]; then
echo "::group::Testing ${D}"
Expand Down

0 comments on commit d633e3c

Please sign in to comment.