.github: build again single-threaded and verbose on failure

Building in parallel is much faster but it makes logs unreadable and
build failures impossible to understand. This is especially true when
building with recent ALSA that produces of deprecation warnings.

To show what actually fails, try to build again with a single thread.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2022-04-01 21:36:11 +00:00 committed by Liam Girdwood
parent bde4858625
commit 791efe2094
3 changed files with 12 additions and 5 deletions

View File

@ -27,10 +27,12 @@ jobs:
run: docker pull thesofproject/sof && docker tag thesofproject/sof sof
# -j3 tests the ability to build multiple platforms
# concurrently. It makes the build log unreadable but that's OK
# because we have other, slower actions with readable logs.
# concurrently. It makes the build log unreadable, so retry with
# a single thread in case of failure
- name: build all and stage
run: ./scripts/docker-run.sh make -j3 -C installer/ tarball
run: ./scripts/docker-run.sh make -j3 -C installer/ tarball ||
VERBOSE=1 NO_PROCESSORS=1 USE_XARGS=no
./scripts/docker-run.sh make -j1 -C installer/ tarball
- name: check staging tree
run: make -C installer/ checktree

View File

@ -71,8 +71,10 @@ jobs:
# Use our docker container to avoid the "unsupported widget type asrc"
# bug in ALSA 1.2.2
# https://github.com/thesofproject/sof/issues/2543
- name: build topologies
run: ./scripts/docker-run.sh ./scripts/build-tools.sh -t
- name: build test topologies
run: ./scripts/docker-run.sh ./scripts/build-tools.sh -t ||
VERBOSE=1 NO_PROCESSORS=1 USE_XARGS=no
./scripts/docker-run.sh ./scripts/build-tools.sh -t
- name: build testbench
run: ./scripts/rebuild-testbench.sh

View File

@ -23,4 +23,7 @@ jobs:
# For some reason gcc has more warnings in Release mode
- name: build-tools
run: CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh
./scripts/build-tools.sh ||
VERBOSE=1 NO_PROCESSORS=1 USE_XARGS=no
CMAKE_BUILD_TYPE=Release ./scripts/docker-run.sh
./scripts/build-tools.sh