mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
add pdb and improve workflow
This commit is contained in:
parent
93377a1b54
commit
4197c4366c
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -4,13 +4,10 @@ on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: "Release Tag"
|
||||
description: "Release Tag and version"
|
||||
required: true
|
||||
publish:
|
||||
description: "Publish: If want ignore"
|
||||
required: false
|
||||
artifact-pack:
|
||||
description: "artifact-pack: If want ignore"
|
||||
description: "r for normal release, p for prerelease, leave empty to not publish anything"
|
||||
required: false
|
||||
jobs:
|
||||
build-go:
|
||||
@ -98,6 +95,7 @@ jobs:
|
||||
runs-on: ${{ matrix.platform }}
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||
INPUT_VERSION: ${{ github.event.inputs.tag }}
|
||||
steps:
|
||||
- name: Checking out sources
|
||||
uses: actions/checkout@v4.2.2
|
||||
@ -149,7 +147,7 @@ jobs:
|
||||
export CMAKE_PREFIX_PATH=$PWD/qt6/build/lib/cmake
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -GNinja -DCMAKE_CXX_FLAGS="-static -DNDEBUG -s" ..
|
||||
cmake -GNinja -DCMAKE_CXX_FLAGS="-static" -DCMAKE_BUILD_TYPE=Debug ..
|
||||
ninja -j2
|
||||
cd ..
|
||||
./script/deploy_windows64.sh
|
||||
@ -192,7 +190,6 @@ jobs:
|
||||
path: artifacts.tgz
|
||||
publish:
|
||||
name: Pack & Publish Release
|
||||
if: github.event.inputs.artifact-pack != 'y'
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- build-cpp
|
||||
@ -264,6 +261,6 @@ jobs:
|
||||
run: |
|
||||
./ghr -prerelease -delete -t "${{ github.token }}" -n "${{ github.event.inputs.tag }}" "${{ github.event.inputs.tag }}" deployment
|
||||
- name: Release
|
||||
if: github.event.inputs.publish == ''
|
||||
if: github.event.inputs.publish == 'r'
|
||||
run: |
|
||||
./ghr -delete -t "${{ github.token }}" -n "${{ github.event.inputs.tag }}" "${{ github.event.inputs.tag }}" deployment
|
||||
|
||||
@ -6,6 +6,17 @@ DEST=$DEPLOYMENT/windows64
|
||||
rm -rf $DEST
|
||||
mkdir -p $DEST
|
||||
|
||||
#### get the pdb ####
|
||||
curl -fLJO https://github.com/rainers/cv2pdb/releases/download/v0.53/cv2pdb-0.53.zip
|
||||
7z x cv2pdb-0.53.zip -ocv2pdb
|
||||
./cv2pdb/cv2pdb64.exe ./build/nekoray.exe ./tmp.exe ./nekoray.pdb
|
||||
rm -rf cv2pdb-0.53.zip cv2pdb
|
||||
cd build
|
||||
strip -s nekoray.exe
|
||||
cd ..
|
||||
rm tmp.exe
|
||||
mv nekoray.pdb $DEST
|
||||
|
||||
#### copy exe ####
|
||||
cp $BUILD/nekoray.exe $DEST
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
SRC_ROOT="$PWD"
|
||||
DEPLOYMENT="$SRC_ROOT/deployment"
|
||||
BUILD="$SRC_ROOT/build"
|
||||
version_standalone="nekoray-"$(cat nekoray_version.txt)
|
||||
version_standalone="nekoray-"$INPUT_VERSION
|
||||
|
||||
Loading…
Reference in New Issue
Block a user