GHA: Separate debug symbols upload

This commit is contained in:
Serhii Snitsaruk 2024-12-18 00:15:40 +01:00
parent 4f18bc36d9
commit 4d193c53ce
No known key found for this signature in database
GPG Key ID: A965EF8799FFEC2D
1 changed files with 25 additions and 5 deletions

View File

@ -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: