diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index e98f49be3..2797e71ce 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -657,6 +657,29 @@ jobs: mv ${GITHUB_WORKSPACE}/qt6-macos-*/*.tar.xz ${{ github.workspace }} + - name: Package macOS debug symbols + run: | + : Package macOS dependencies + shopt -s extglob + + for arch in arm64 x86_64 universal; do + _temp=$(mktemp -d) + pushd "${_temp}" > /dev/null + + for artifact in ${GITHUB_WORKSPACE}/**/macos-@(deps|ffmpeg)-!(qt6*)-${arch}-dSYMs.*; do + case ${artifact} in + *.zip) unzip -o ${artifact} > /dev/null ;; + *.tar.xz) XZ_OPT=-T0 tar -xvJf ${artifact} ;; + *.tar.gz) tar -xvzf ${artifact} ;; + esac + done + + XZ_OPT=-T0 tar -cvJf macos-deps-${{ steps.metadata.outputs.version }}-${arch}-dSYMs.tar.xz -- *.dSYM + mv macos-deps-${{ steps.metadata.outputs.version }}-${arch}-dSYMs.tar.xz ${GITHUB_WORKSPACE} + + popd > /dev/null + done + - name: Generate Checksums run: | : Generate Checksums @@ -678,6 +701,6 @@ jobs: files: | ${{ github.workspace }}/windows-*-x64*.zip ${{ github.workspace }}/windows-*-x86*.zip - ${{ github.workspace }}/macos-*-arm64.tar.xz - ${{ github.workspace }}/macos-*-x86_64.tar.xz - ${{ github.workspace }}/macos-*-universal.tar.xz + ${{ github.workspace }}/macos-*-arm64?(-dSYMs).tar.xz + ${{ github.workspace }}/macos-*-x86_64?(-dSYMs).tar.xz + ${{ github.workspace }}/macos-*-universal?(-dSYMs).tar.xz