CI: Add debian debug symbols to CI artifacts

This commit is contained in:
PatTheMav 2022-11-11 15:06:14 +01:00 committed by Ryan Foster
parent 358d706e38
commit 51df553e86
2 changed files with 14 additions and 1 deletions

View file

@ -273,6 +273,7 @@ jobs:
CI/linux/03_package_obs.sh
ARTIFACT_NAME=$(basename $(/usr/bin/find build -maxdepth 1 -type f -name "obs-studio-*.deb" | sort -rn | head -1))
echo "FILE_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV
echo "DEBUG_FILE_NAME=${ARTIFACT_NAME//.deb/-dbgsym.ddeb}" >> $GITHUB_ENV
- name: 'Upload build Artifact'
if: ${{ success() && (github.event_name != 'pull_request' || env.SEEKING_TESTERS == '1') }}
@ -281,6 +282,13 @@ jobs:
name: 'obs-studio-${{ matrix.ubuntu }}-${{ steps.setup.outputs.commitHash }}'
path: '${{ github.workspace }}/obs-studio/build/${{ env.FILE_NAME }}'
- name: 'Upload debug symbol Artifact'
if: ${{ success() && (github.event_name != 'pull_request' || env.SEEKING_TESTERS == '1') }}
uses: actions/upload-artifact@v3
with:
name: 'obs-studio-${{ matrix.ubuntu }}-${{ steps.setup.outputs.commitHash }}-dbgsym'
path: '${{ github.workspace }}/obs-studio/build/${{ env.DEBUG_FILE_NAME }}'
windows_build:
name: '02 - Windows'
runs-on: [windows-2022]

View file

@ -21,9 +21,14 @@ package_obs() {
cmake --build ${BUILD_DIR} -t package
DEB_NAME=$(find ${BUILD_DIR} -maxdepth 1 -type f -name "obs*.deb" | sort -rn | head -1)
DEBUG_NAME="${DEB_NAME//.deb/-dbgsym.ddeb}"
if [ "${DEB_NAME}" ]; then
mv ${DEB_NAME} ${BUILD_DIR}/${FILE_NAME}
mv "${DEB_NAME}" "${BUILD_DIR}/${FILE_NAME}"
if [ "${DEBUG_NAME}" ]; then
mv "${DEBUG_NAME}" "${BUILD_DIR}/${FILE_NAME//.deb/-dbgsym.ddeb}"
fi
else
error "ERROR No suitable OBS debian package generated"
fi