From 8c3b705f04fda7fc8cbe7baf3ed8fe44a9c39304 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Sat, 13 Sep 2025 23:22:39 +0300 Subject: [PATCH] CI: modified-scripts-build: print config.log on build failure --- .github/workflows/modified_scripts_build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/modified_scripts_build.yml b/.github/workflows/modified_scripts_build.yml index 88f28878..a06fd023 100644 --- a/.github/workflows/modified_scripts_build.yml +++ b/.github/workflows/modified_scripts_build.yml @@ -55,7 +55,8 @@ jobs: fi - run: | #build - pyenv --debug install ${{ matrix.python-version }} + pyenv --debug install ${{ matrix.python-version }} && rc=$? || rc=$? + if [[ $rc -ne 0 ]]; then echo config.log:; cat $TMPDIR/python-build*/*/config.log; false; fi pyenv global ${{ matrix.python-version }} # Micropython doesn't support --version - run: | @@ -116,7 +117,8 @@ jobs: fi - run: | #build - pyenv --debug install ${{ matrix.python-version }} + pyenv --debug install ${{ matrix.python-version }} && rc=$? || rc=$? + if [[ $rc -ne 0 ]]; then echo config.log:; cat $TMPDIR/python-build*/*/config.log; false; fi pyenv global ${{ matrix.python-version }} # Micropython doesn't support --version - run: | @@ -179,7 +181,8 @@ jobs: fi - run: | #build - pyenv install -v ${{ matrix.python-version }} + pyenv --debug install ${{ matrix.python-version }} && rc=$? || rc=$? + if [[ $rc -ne 0 ]]; then echo config.log:; cat $TMPDIR/python-build*/*/config.log; false; fi pyenv global ${{ matrix.python-version }} # Micropython doesn't support --version - run: | @@ -238,7 +241,8 @@ jobs: fi - run: | #build - pyenv install -v ${{ matrix.python-version }} + pyenv --debug install ${{ matrix.python-version }} && rc=$? || rc=$? + if [[ $rc -ne 0 ]]; then echo config.log:; cat $TMPDIR/python-build*/*/config.log; false; fi pyenv global ${{ matrix.python-version }} # Micropython doesn't support --version - run: |