mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-24 10:33:15 +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:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
tag:
|
tag:
|
||||||
description: "Release Tag"
|
description: "Release Tag and version"
|
||||||
required: true
|
required: true
|
||||||
publish:
|
publish:
|
||||||
description: "Publish: If want ignore"
|
description: "r for normal release, p for prerelease, leave empty to not publish anything"
|
||||||
required: false
|
|
||||||
artifact-pack:
|
|
||||||
description: "artifact-pack: If want ignore"
|
|
||||||
required: false
|
required: false
|
||||||
jobs:
|
jobs:
|
||||||
build-go:
|
build-go:
|
||||||
@ -98,6 +95,7 @@ jobs:
|
|||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
env:
|
env:
|
||||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||||
|
INPUT_VERSION: ${{ github.event.inputs.tag }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checking out sources
|
- name: Checking out sources
|
||||||
uses: actions/checkout@v4.2.2
|
uses: actions/checkout@v4.2.2
|
||||||
@ -149,7 +147,7 @@ jobs:
|
|||||||
export CMAKE_PREFIX_PATH=$PWD/qt6/build/lib/cmake
|
export CMAKE_PREFIX_PATH=$PWD/qt6/build/lib/cmake
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake -GNinja -DCMAKE_CXX_FLAGS="-static -DNDEBUG -s" ..
|
cmake -GNinja -DCMAKE_CXX_FLAGS="-static" -DCMAKE_BUILD_TYPE=Debug ..
|
||||||
ninja -j2
|
ninja -j2
|
||||||
cd ..
|
cd ..
|
||||||
./script/deploy_windows64.sh
|
./script/deploy_windows64.sh
|
||||||
@ -192,7 +190,6 @@ jobs:
|
|||||||
path: artifacts.tgz
|
path: artifacts.tgz
|
||||||
publish:
|
publish:
|
||||||
name: Pack & Publish Release
|
name: Pack & Publish Release
|
||||||
if: github.event.inputs.artifact-pack != 'y'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build-cpp
|
- build-cpp
|
||||||
@ -264,6 +261,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
./ghr -prerelease -delete -t "${{ github.token }}" -n "${{ github.event.inputs.tag }}" "${{ github.event.inputs.tag }}" deployment
|
./ghr -prerelease -delete -t "${{ github.token }}" -n "${{ github.event.inputs.tag }}" "${{ github.event.inputs.tag }}" deployment
|
||||||
- name: Release
|
- name: Release
|
||||||
if: github.event.inputs.publish == ''
|
if: github.event.inputs.publish == 'r'
|
||||||
run: |
|
run: |
|
||||||
./ghr -delete -t "${{ github.token }}" -n "${{ github.event.inputs.tag }}" "${{ github.event.inputs.tag }}" deployment
|
./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
|
rm -rf $DEST
|
||||||
mkdir -p $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 ####
|
#### copy exe ####
|
||||||
cp $BUILD/nekoray.exe $DEST
|
cp $BUILD/nekoray.exe $DEST
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
SRC_ROOT="$PWD"
|
SRC_ROOT="$PWD"
|
||||||
DEPLOYMENT="$SRC_ROOT/deployment"
|
DEPLOYMENT="$SRC_ROOT/deployment"
|
||||||
BUILD="$SRC_ROOT/build"
|
BUILD="$SRC_ROOT/build"
|
||||||
version_standalone="nekoray-"$(cat nekoray_version.txt)
|
version_standalone="nekoray-"$INPUT_VERSION
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user