Skip to content

Commit

Permalink
CI: Avoid fancy sh things that go wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Nov 25, 2023
1 parent aaedea9 commit 0965b3e
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/buildtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,20 @@ jobs:
for D in ${DIRS}; do
echo "::group::Building ${D}"
cd ${D}
BOARDS=${{ matrix.board }} make info-boards-supported | grep -q . || ( echo "Board is not supported for this test"; cd -; continue )
BOARD=${{ matrix.board }} make all
echo "::endgroup::"
if make test/available BOARD=native && [ "native" = "${{ matrix.board }}" ]; then
echo "::group::Testing ${D}"
make all test BOARD=native
echo "::endgroup::"
if BOARDS=${{ matrix.board }} make info-boards-supported | grep -q .
then
BOARD=${{ matrix.board }} make all
if [ "native" = "${{ matrix.board }}" ] && make test/available BOARD=native
then
echo "::group::Testing ${D}"
make all test BOARD=native
echo "::endgroup::"
fi
else
echo "Board is not supported for this test, skipping."
fi
cd -
echo "::endgroup::"
done
echo "::echo ::off"

0 comments on commit 0965b3e

Please sign in to comment.