mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-04 10:33:30 +00:00
CI: Add debian debug symbols to CI artifacts
This commit is contained in:
parent
358d706e38
commit
51df553e86
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue