fix: update artifact zipping logic to target build directories in canary and release workflows

This commit is contained in:
Aaron Kimbrell
2026-06-01 18:29:37 -05:00
parent 3e8a656d47
commit cef08816fa
3 changed files with 17 additions and 17 deletions

View File

@@ -18,19 +18,16 @@ jobs:
include:
- os: windows-2025
artifact: windows
preset: ci-windows-2022
debug_preset: windows-msvc-relwithdebinfo
- os: ubuntu-24.04
artifact: linux
preset: ci-ubuntu-22.04
debug_preset: linux-gnu-relwithdebinfo
- os: macos-15-intel
artifact: macos
preset: ci-macos-15-intel
debug_preset: macos-relwithdebinfo
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
submodules: true
- name: Add msbuild to PATH (Windows only)
@@ -47,8 +44,17 @@ jobs:
uses: lukka/run-cmake@5d55ea7949e25f69f0ecb516d8d572297e03a956 # v10.9
with:
workflowPreset: "${{ matrix.debug_preset }}"
- name: Extract Linux debug symbols
if: matrix.os == 'ubuntu-24.04'
run: |
find build -type f -name '*Server' | while read bin; do
objcopy --only-keep-debug "$bin" "${bin}.debug"
objcopy --strip-debug --add-gnu-debuglink="${bin}.debug" "$bin"
done
- name: artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: build-${{matrix.artifact}}
path: |
@@ -64,17 +70,11 @@ jobs:
!build/*/*.pdb
!build/*/d*/
!build/*/*.dSYM/
!build/**/*.debug
- name: Extract Linux debug symbols
if: matrix.os == 'ubuntu-24.04'
run: |
find build -type f -name '*Server' | while read bin; do
objcopy --only-keep-debug "$bin" "${bin}.debug"
objcopy --strip-debug --add-gnu-debuglink="${bin}.debug" "$bin"
done
- name: debug symbols (Windows)
if: matrix.os == 'windows-2025'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: debug-${{matrix.artifact}}
path: |
@@ -83,14 +83,14 @@ jobs:
retention-days: 30
- name: debug symbols (Linux)
if: matrix.os == 'ubuntu-24.04'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: debug-${{matrix.artifact}}
path: build/**/*.debug
retention-days: 30
- name: debug symbols (macOS)
if: matrix.os == 'macos-15-intel'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: debug-${{matrix.artifact}}
path: build/**/*.dSYM/

View File

@@ -64,7 +64,7 @@ jobs:
["build-macos"]="darkflame-universe-macos"
)
cd artifacts
for dir in */; do
for dir in build-*/; do
name="${dir%/}"
out="${platform_map[$name]:-$name}"
zip -r "../${out}.zip" "$dir"

View File

@@ -49,7 +49,7 @@ jobs:
["build-macos"]="darkflame-universe-macos"
)
cd artifacts
for dir in */; do
for dir in build-*/; do
name="${dir%/}"
out="${platform_map[$name]:-$name}"
zip -r "../${out}.zip" "$dir"