W-Mai commented on code in PR #7114: URL: https://github.com/apache/incubator-nuttx/pull/7114#discussion_r990782855
########## .github/workflows/build.yml: ########## @@ -157,17 +158,35 @@ jobs: export CCACHE_DIR=`pwd`/ccache mkdir $CCACHE_DIR export ARTIFACTDIR=`pwd`/buildartifacts + export CODECHECKERLOGSDIR=`pwd`/codecheckerlogs + export BOARDSEL=${{matrix.boards}} git config --global --add safe.directory /github/workspace/sources/nuttx git config --global --add safe.directory /github/workspace/sources/apps cd sources/nuttx/tools/ci - ./cibuild.sh -A -R -c testlist/${{matrix.boards}}.dat + if [ "X${BOARDSEL}" = "Xcodechecker" ]; then + if ${{ env.CODECHECKER_FAIL }}; then + ./cibuild.sh -A -R -c --codechecker --codechecker-failed testlist/${BOARDSEL}.dat + else + ./cibuild.sh -A -R -c --codechecker testlist/${BOARDSEL}.dat + fi + else + ./cibuild.sh -A -R -c testlist/${BOARDSEL}.dat + fi ccache -s - uses: actions/upload-artifact@v3 with: name: linux-builds path: buildartifacts/ continue-on-error: true + + - name: Upload CodeChecker Logs Review Comment: When the build fails, the buildartifacts step is skipped -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org