From a4299e75ed9944ab184e4333246875d06fb19dab Mon Sep 17 00:00:00 2001 From: Peter Feerick Date: Sun, 16 Aug 2026 11:29:17 +1000 Subject: [PATCH] fix(ci): restore build log artifact upload for Companion CI (#7654) Co-authored-by: Peter Feerick <5500713+pfeerick@users.noreply.github.com> Co-authored-by: Claude Sonnet 5 --- .github/actions/build_companion/action.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/actions/build_companion/action.yml b/.github/actions/build_companion/action.yml index 71376118d..ed59ffd98 100644 --- a/.github/actions/build_companion/action.yml +++ b/.github/actions/build_companion/action.yml @@ -59,12 +59,34 @@ runs: tools/build-companion.sh "$(pwd)" "$(pwd)/output/" - name: Compose release filename + if: always() run: echo "artifact_name=edgetx-cpn-${{ inputs.os }}-${GITHUB_REF##*/}" >> $GITHUB_ENV shell: bash + - name: Collect build logs + if: always() + shell: bash + run: | + mkdir -p logs + + if [ -d "build" ]; then + find build -name "*.log" -type f -exec cp {} logs/ \; 2>/dev/null || true + find build -name "CMakeOutput.log" -type f -exec cp {} logs/ \; 2>/dev/null || true + find build -name "CMakeError.log" -type f -exec cp {} logs/ \; 2>/dev/null || true + fi + - name: Archive production artifacts uses: actions/upload-artifact@v7 with: name: "${{ env.artifact_name }}" path: ${{github.workspace}}/output retention-days: 15 + + - name: Archive build logs + if: always() + uses: actions/upload-artifact@v7 + with: + name: "${{ env.artifact_name }}-logs" + path: ${{github.workspace}}/logs + retention-days: 30 + if-no-files-found: ignore