Compare commits

..

2 Commits

Author SHA1 Message Date
Serhii Snitsaruk 1d2a8bcf96
iterate 2024-12-18 01:24:52 +01:00
Serhii Snitsaruk 4d193c53ce
GHA: Separate debug symbols upload 2024-12-18 00:55:14 +01:00
1 changed files with 29 additions and 8 deletions

View File

@ -274,6 +274,7 @@ jobs:
if: matrix.opts.platform == 'web'
run: |
emcc -v
llvm-objcopy --help
- name: Set up scons
if: matrix.opts.platform != 'linux'
@ -360,9 +361,9 @@ jobs:
if: inputs.debug-symbols && matrix.opts.platform == 'web'
shell: bash
run: |
ls -R emsdk-cache/
echo "---"
echo ${PATH}
emstrip --only-keep-debug -o ${{matrix.opts.bin}}.debug ${{matrix.opts.bin}}
emstrip --strip-debug ${{matrix.opts.bin}}
llvm-objcopy --add-gnu-debuglink ${{matrix.opts.bin}}.debug ${{matrix.opts.bin}}
- name: Split debug symbols (Android)
if: inputs.debug-symbols && matrix.opts.platform == 'android'
@ -379,18 +380,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 +418,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: