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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Peter Feerick
Claude Sonnet 5
parent
cae534a389
commit
a4299e75ed
@@ -59,12 +59,34 @@ runs:
|
|||||||
tools/build-companion.sh "$(pwd)" "$(pwd)/output/"
|
tools/build-companion.sh "$(pwd)" "$(pwd)/output/"
|
||||||
|
|
||||||
- name: Compose release filename
|
- name: Compose release filename
|
||||||
|
if: always()
|
||||||
run: echo "artifact_name=edgetx-cpn-${{ inputs.os }}-${GITHUB_REF##*/}" >> $GITHUB_ENV
|
run: echo "artifact_name=edgetx-cpn-${{ inputs.os }}-${GITHUB_REF##*/}" >> $GITHUB_ENV
|
||||||
shell: bash
|
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
|
- name: Archive production artifacts
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: "${{ env.artifact_name }}"
|
name: "${{ env.artifact_name }}"
|
||||||
path: ${{github.workspace}}/output
|
path: ${{github.workspace}}/output
|
||||||
retention-days: 15
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user