mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 00:45:22 +08:00
[ci]Add bsp attachconfig check
This commit is contained in:
@@ -421,19 +421,4 @@ jobs:
|
||||
SRTT_BSP: ${{ join(matrix.legs.SUB_RTT_BSP, ',') }}
|
||||
run: |
|
||||
source ~/.env/env.sh
|
||||
failed=0
|
||||
count=0
|
||||
for bsp in $(echo $SRTT_BSP | tr ',' '\n'); do
|
||||
count=$((count+1))
|
||||
echo "::group::Compiling BSP: ==$count=== $bsp ===="
|
||||
echo bsp/$bsp
|
||||
ls bsp/$bsp/Kconfig && scons -C bsp/$bsp --pyconfig-silent
|
||||
pushd bsp/$bsp && pkgs --update && popd
|
||||
scons -C bsp/$bsp -j$(nproc) --debug=time | tee output.log || \
|
||||
{ total_time=$(grep "Total command execution time" output.log | awk '{print $5}'); \
|
||||
failed=$((failed+1)) ; echo "::endgroup::" ; echo "::error::build $bsp failed" ; \
|
||||
echo "- ❌ build $bsp failed in $total_time seconds " >> $GITHUB_STEP_SUMMARY ; } && \
|
||||
{ total_time=$(grep "Total command execution time" output.log | awk '{print $5}'); \
|
||||
echo "- ✅ build $bsp success in $total_time seconds " >> $GITHUB_STEP_SUMMARY ; echo "::endgroup::" ; }
|
||||
done
|
||||
exit $failed
|
||||
python tools/ci/bsp_buildings.py
|
||||
|
||||
Reference in New Issue
Block a user