build release and don't strip
This commit is contained in:
parent
ada7cb167f
commit
0f203d1abd
30
.github/workflows/build.yml
vendored
30
.github/workflows/build.yml
vendored
|
@ -11,7 +11,7 @@ defaults:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BUILD_TYPE: RelWithDebInfo
|
BUILD_TYPE: Release
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -226,17 +226,17 @@ jobs:
|
||||||
binPath="${binPath}/${{ env.BUILD_TYPE }}"
|
binPath="${binPath}/${{ env.BUILD_TYPE }}"
|
||||||
fi
|
fi
|
||||||
# always strip on MinGW as it generate massive artifacts
|
# always strip on MinGW as it generate massive artifacts
|
||||||
if [ '${{ matrix.config.compiler }}' == 'mingw' ]; then
|
#if [ '${{ matrix.config.compiler }}' == 'mingw' ]; then
|
||||||
# arch-specific strip prefix
|
# # arch-specific strip prefix
|
||||||
# TODO maybe extract from cross toolchain files?
|
# # TODO maybe extract from cross toolchain files?
|
||||||
toolPrefix="-w64-mingw32-"
|
# toolPrefix="-w64-mingw32-"
|
||||||
if [ '${{ matrix.config.arch }}' == 'x86_64' ]; then
|
# if [ '${{ matrix.config.arch }}' == 'x86_64' ]; then
|
||||||
toolPrefix="x86_64${toolPrefix}"
|
# toolPrefix="x86_64${toolPrefix}"
|
||||||
else
|
# else
|
||||||
toolPrefix="i686${toolPrefix}"
|
# toolPrefix="i686${toolPrefix}"
|
||||||
fi
|
# fi
|
||||||
${toolPrefix}strip -s "${binPath}/furnace.exe"
|
# ${toolPrefix}strip -s "${binPath}/furnace.exe"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
mkdir ${{ steps.package-identify.outputs.filename }}
|
mkdir ${{ steps.package-identify.outputs.filename }}
|
||||||
pushd ${{ steps.package-identify.outputs.filename }}
|
pushd ${{ steps.package-identify.outputs.filename }}
|
||||||
|
@ -258,9 +258,9 @@ jobs:
|
||||||
- name: Package [Ubuntu]
|
- name: Package [Ubuntu]
|
||||||
if: ${{ runner.os == 'Linux' && matrix.config.compiler != 'mingw' }}
|
if: ${{ runner.os == 'Linux' && matrix.config.compiler != 'mingw' }}
|
||||||
run: |
|
run: |
|
||||||
if [ '${{ env.BUILD_TYPE }}' == 'Release' ]; then
|
#if [ '${{ env.BUILD_TYPE }}' == 'Release' ]; then
|
||||||
strip -s build/furnace
|
# strip -s build/furnace
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
mkdir -p target/furnace.AppDir
|
mkdir -p target/furnace.AppDir
|
||||||
make -C ${PWD}/build DESTDIR=${PWD}/target/furnace.AppDir install
|
make -C ${PWD}/build DESTDIR=${PWD}/target/furnace.AppDir install
|
||||||
|
|
Loading…
Reference in a new issue