mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-02 07:45:26 +00:00
commit
21e5101560
12
.github/workflows/linux.yml
vendored
12
.github/workflows/linux.yml
vendored
@ -47,6 +47,12 @@ jobs:
|
|||||||
name: BeamMP-Server-debian
|
name: BeamMP-Server-debian
|
||||||
path: ./bin/BeamMP-Server
|
path: ./bin/BeamMP-Server
|
||||||
|
|
||||||
|
- name: Archive server debug info artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: BeamMP-Server-debian.debug
|
||||||
|
path: ./bin/BeamMP-Server.debug
|
||||||
|
|
||||||
- name: Build Tests
|
- name: Build Tests
|
||||||
run: bash ./scripts/debian-11/3-build-tests.sh
|
run: bash ./scripts/debian-11/3-build-tests.sh
|
||||||
|
|
||||||
@ -101,6 +107,12 @@ jobs:
|
|||||||
name: BeamMP-Server-ubuntu
|
name: BeamMP-Server-ubuntu
|
||||||
path: ./bin/BeamMP-Server
|
path: ./bin/BeamMP-Server
|
||||||
|
|
||||||
|
- name: Archive server debug info artifact
|
||||||
|
uses: actions/upload-artifact@v2
|
||||||
|
with:
|
||||||
|
name: BeamMP-Server-ubuntu.debug
|
||||||
|
path: ./bin/BeamMP-Server.debug
|
||||||
|
|
||||||
- name: Build Tests
|
- name: Build Tests
|
||||||
run: bash ./scripts/ubuntu-22.04/3-build-tests.sh
|
run: bash ./scripts/ubuntu-22.04/3-build-tests.sh
|
||||||
|
|
||||||
|
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
@ -83,6 +83,17 @@ jobs:
|
|||||||
asset_path: ./bin/BeamMP-Server
|
asset_path: ./bin/BeamMP-Server
|
||||||
asset_name: BeamMP-Server-debian
|
asset_name: BeamMP-Server-debian
|
||||||
asset_content_type: application/x-elf
|
asset_content_type: application/x-elf
|
||||||
|
|
||||||
|
- name: Upload Debug Info
|
||||||
|
id: upload-debug-info
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ needs.create-release.outputs.upload_url }}
|
||||||
|
asset_path: ./bin/BeamMP-Server.debug
|
||||||
|
asset_name: debuginfo-debian.debug
|
||||||
|
asset_content_type: application/x-elf
|
||||||
|
|
||||||
upload-release-files-ubuntu-22-04:
|
upload-release-files-ubuntu-22-04:
|
||||||
name: Build and upload Ubuntu 22.04 Release Files
|
name: Build and upload Ubuntu 22.04 Release Files
|
||||||
@ -131,6 +142,17 @@ jobs:
|
|||||||
asset_name: BeamMP-Server-ubuntu
|
asset_name: BeamMP-Server-ubuntu
|
||||||
asset_content_type: application/x-elf
|
asset_content_type: application/x-elf
|
||||||
|
|
||||||
|
- name: Upload Debug Info
|
||||||
|
id: upload-debug-info
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ needs.create-release.outputs.upload_url }}
|
||||||
|
asset_path: ./bin/BeamMP-Server.debug
|
||||||
|
asset_name: debuginfo-ubuntu.debug
|
||||||
|
asset_content_type: application/x-elf
|
||||||
|
|
||||||
upload-release-files-windows:
|
upload-release-files-windows:
|
||||||
name: Build and upload Windows Release Files
|
name: Build and upload Windows Release Files
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
cmake . -B bin $1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -s -Wl,-z,norelro -Wl,--hash-style=gnu -Wl,--build-id=none -Wl,-z,noseparate-code -ffunction-sections -fdata-sections -Wl,--gc-sections" -DBeamMP-Server_ENABLE_LTO=ON
|
cmake . -B bin $1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -g -Wl,-z,norelro -Wl,--hash-style=gnu -Wl,--build-id=none -Wl,-z,noseparate-code -ffunction-sections -fdata-sections -Wl,--gc-sections" -DBeamMP-Server_ENABLE_LTO=ON
|
||||||
|
@ -3,3 +3,8 @@
|
|||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
cmake --build bin --parallel -t BeamMP-Server
|
cmake --build bin --parallel -t BeamMP-Server
|
||||||
|
|
||||||
|
objcopy --only-keep-debug bin/BeamMP-Server bin/BeamMP-Server.debug
|
||||||
|
objcopy --add-gnu-debuglink bin/BeamMP-Server bin/BeamMP-Server.debug
|
||||||
|
|
||||||
|
strip -s bin/BeamMP-Server
|
||||||
|
@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
cmake . -B bin $1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -s -Wl,-z,norelro -Wl,--hash-style=gnu -Wl,--build-id=none -Wl,-z,noseparate-code -ffunction-sections -fdata-sections -Wl,--gc-sections" -DBeamMP-Server_ENABLE_LTO=ON
|
cmake . -B bin $1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-O3 -g -Wl,-z,norelro -Wl,--hash-style=gnu -Wl,--build-id=none -Wl,-z,noseparate-code -ffunction-sections -fdata-sections -Wl,--gc-sections" -DBeamMP-Server_ENABLE_LTO=ON
|
||||||
|
@ -3,3 +3,8 @@
|
|||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
cmake --build bin --parallel -t BeamMP-Server
|
cmake --build bin --parallel -t BeamMP-Server
|
||||||
|
|
||||||
|
objcopy --only-keep-debug bin/BeamMP-Server bin/BeamMP-Server.debug
|
||||||
|
objcopy --add-gnu-debuglink bin/BeamMP-Server bin/BeamMP-Server.debug
|
||||||
|
|
||||||
|
strip -s bin/BeamMP-Server
|
||||||
|
Loading…
x
Reference in New Issue
Block a user