mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-06-06 23:04:21 +00:00
fix: update artifact zipping logic to target build directories in canary and release workflows
This commit is contained in:
30
.github/workflows/build-and-test.yml
vendored
30
.github/workflows/build-and-test.yml
vendored
@@ -18,19 +18,16 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: windows-2025
|
- os: windows-2025
|
||||||
artifact: windows
|
artifact: windows
|
||||||
preset: ci-windows-2022
|
|
||||||
debug_preset: windows-msvc-relwithdebinfo
|
debug_preset: windows-msvc-relwithdebinfo
|
||||||
- os: ubuntu-24.04
|
- os: ubuntu-24.04
|
||||||
artifact: linux
|
artifact: linux
|
||||||
preset: ci-ubuntu-22.04
|
|
||||||
debug_preset: linux-gnu-relwithdebinfo
|
debug_preset: linux-gnu-relwithdebinfo
|
||||||
- os: macos-15-intel
|
- os: macos-15-intel
|
||||||
artifact: macos
|
artifact: macos
|
||||||
preset: ci-macos-15-intel
|
|
||||||
debug_preset: macos-relwithdebinfo
|
debug_preset: macos-relwithdebinfo
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Add msbuild to PATH (Windows only)
|
- name: Add msbuild to PATH (Windows only)
|
||||||
@@ -47,8 +44,17 @@ jobs:
|
|||||||
uses: lukka/run-cmake@5d55ea7949e25f69f0ecb516d8d572297e03a956 # v10.9
|
uses: lukka/run-cmake@5d55ea7949e25f69f0ecb516d8d572297e03a956 # v10.9
|
||||||
with:
|
with:
|
||||||
workflowPreset: "${{ matrix.debug_preset }}"
|
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
|
- name: artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||||
with:
|
with:
|
||||||
name: build-${{matrix.artifact}}
|
name: build-${{matrix.artifact}}
|
||||||
path: |
|
path: |
|
||||||
@@ -64,17 +70,11 @@ jobs:
|
|||||||
!build/*/*.pdb
|
!build/*/*.pdb
|
||||||
!build/*/d*/
|
!build/*/d*/
|
||||||
!build/*/*.dSYM/
|
!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)
|
- name: debug symbols (Windows)
|
||||||
if: matrix.os == 'windows-2025'
|
if: matrix.os == 'windows-2025'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||||
with:
|
with:
|
||||||
name: debug-${{matrix.artifact}}
|
name: debug-${{matrix.artifact}}
|
||||||
path: |
|
path: |
|
||||||
@@ -83,14 +83,14 @@ jobs:
|
|||||||
retention-days: 30
|
retention-days: 30
|
||||||
- name: debug symbols (Linux)
|
- name: debug symbols (Linux)
|
||||||
if: matrix.os == 'ubuntu-24.04'
|
if: matrix.os == 'ubuntu-24.04'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||||
with:
|
with:
|
||||||
name: debug-${{matrix.artifact}}
|
name: debug-${{matrix.artifact}}
|
||||||
path: build/**/*.debug
|
path: build/**/*.debug
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
- name: debug symbols (macOS)
|
- name: debug symbols (macOS)
|
||||||
if: matrix.os == 'macos-15-intel'
|
if: matrix.os == 'macos-15-intel'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||||
with:
|
with:
|
||||||
name: debug-${{matrix.artifact}}
|
name: debug-${{matrix.artifact}}
|
||||||
path: build/**/*.dSYM/
|
path: build/**/*.dSYM/
|
||||||
|
|||||||
2
.github/workflows/canary.yml
vendored
2
.github/workflows/canary.yml
vendored
@@ -64,7 +64,7 @@ jobs:
|
|||||||
["build-macos"]="darkflame-universe-macos"
|
["build-macos"]="darkflame-universe-macos"
|
||||||
)
|
)
|
||||||
cd artifacts
|
cd artifacts
|
||||||
for dir in */; do
|
for dir in build-*/; do
|
||||||
name="${dir%/}"
|
name="${dir%/}"
|
||||||
out="${platform_map[$name]:-$name}"
|
out="${platform_map[$name]:-$name}"
|
||||||
zip -r "../${out}.zip" "$dir"
|
zip -r "../${out}.zip" "$dir"
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -49,7 +49,7 @@ jobs:
|
|||||||
["build-macos"]="darkflame-universe-macos"
|
["build-macos"]="darkflame-universe-macos"
|
||||||
)
|
)
|
||||||
cd artifacts
|
cd artifacts
|
||||||
for dir in */; do
|
for dir in build-*/; do
|
||||||
name="${dir%/}"
|
name="${dir%/}"
|
||||||
out="${platform_map[$name]:-$name}"
|
out="${platform_map[$name]:-$name}"
|
||||||
zip -r "../${out}.zip" "$dir"
|
zip -r "../${out}.zip" "$dir"
|
||||||
|
|||||||
Reference in New Issue
Block a user