Skip to content

Commit

Permalink
CI: Overhaul debug output
Browse files Browse the repository at this point in the history
At least with the current GitHub versions, ::echo ::on doesn't do
anything.
  • Loading branch information
chrysn committed Nov 24, 2023
1 parent d633e3c commit 8aeabdf
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/buildtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
path: RIOT
- name: Patch .cargo/config.toml to use current checkout
run: |
set -x
cd RIOT
rm -f .cargo/config.toml
mkdir -p .cargo # Keep working if RIOT ever decides it doesn't need overrides any more
Expand All @@ -38,9 +39,7 @@ jobs:
# No sense in running this in parallel -- this will download the index
# and all relevant crates once, and after that, just make some notes in Cargo.lock
run: |
# It appears that there has to be output before :: commands really catch on
echo "Pulling updates"
echo "::echo ::on"
set -x
for MANIF in $(find RIOT -name Cargo.toml)
do
echo "::group::Updating ${MANIF}"
Expand Down Expand Up @@ -70,6 +69,7 @@ jobs:
path: RIOT
- name: Patch .cargo/config.toml to use current checkout
run: |
set -x
cd RIOT
rm -f .cargo/config.toml
mkdir -p .cargo # Keep working if RIOT ever decides it doesn't need overrides any more
Expand All @@ -80,9 +80,7 @@ jobs:
# No sense in running this in parallel -- this will download the index
# and all relevant crates once, and after that, just make some notes in Cargo.lock
run: |
# It appears that there has to be output before :: commands really catch on
echo "Pulling updates"
echo "::echo ::on"
set -x
for MANIF in $(find RIOT -name Cargo.toml)
do
echo "::group::Updating ${MANIF}"
Expand All @@ -95,15 +93,13 @@ jobs:

- name: Build and run tests
run: |
set -x
DIRS=$(find RIOT/tests -name Makefile | xargs -n1 dirname)
export RIOTBASE=$(pwd)/RIOT
# It appears that there has to be output before :: commands really catch on
echo "Building ${DIRS} on ${{ matrix.board }}"
echo "::echo ::on"
for D in ${DIRS}; do
echo "::group::Building ${D}"
cd ${D}
BOARDS=${{ matrix.board }} make info-boards-supported | grep -q . || ( cd -; continue )
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
Expand Down

0 comments on commit 8aeabdf

Please sign in to comment.