diff --git a/.github/workflows/gdextension.yml b/.github/workflows/gdextension.yml index bf2bfd3..a3c4852 100644 --- a/.github/workflows/gdextension.yml +++ b/.github/workflows/gdextension.yml @@ -379,18 +379,30 @@ jobs: cp {README,LICENSE,LOGO_LICENSE}.md out/addons/limboai/ cp -R demo/demo/ out/demo/ cp demo/LICENSE_ASSETS.md out/demo/ - rm -f out/addons/limboai/bin/*.{exp,lib,pdb} + rm -f out/addons/limboai/bin/*.{exp,lib} echo "${LIMBOAI_VERSION}" > out/addons/limboai/version.txt echo "---" ls -R out/ - name: Upload artifact uses: actions/upload-artifact@v4 - env: - NAME: tmp-gdextension.${{matrix.opts.platform}}.${{matrix.opts.target}}.${{matrix.opts.arch}} with: - name: ${{ env.NAME }} - path: out/* + name: tmp-gdextension.${{matrix.opts.platform}}.${{matrix.opts.target}}.${{matrix.opts.arch}} + path: | + out/* + !out/**/*.debug + !out/**/*.pdb + !out/**/*.dSYM + + - name: Upload debug symbols + if: inputs.debug-symbols + uses: actions/upload-artifact@v4 + with: + name: tmp-gdextension-symbols.${{matrix.opts.platform}}.${{matrix.opts.target}}.${{matrix.opts.arch}} + path: | + out/**/*.debug + out/**/*.pdb + out/**/*.dSYM package-extension: name: 📦 Package extension @@ -405,6 +417,14 @@ jobs: pattern: tmp-gdextension.* delete-merged: true + - name: Merge debug symbols artifacts + if: inputs.debug-symbols + uses: actions/upload-artifact/merge@v4 + with: + name: ${{needs.gdextension.outputs.name-prefix}}.debug-symbols + pattern: tmp-gdextension-symbols.* + delete-merged: true + - name: Download artifact uses: actions/download-artifact@v4 with: