build release and don't strip

This commit is contained in:
tildearrow 2022-05-26 18:17:04 -05:00
parent ada7cb167f
commit 0f203d1abd

View file

@ -11,7 +11,7 @@ defaults:
shell: bash
env:
BUILD_TYPE: RelWithDebInfo
BUILD_TYPE: Release
jobs:
build:
@ -226,17 +226,17 @@ jobs:
binPath="${binPath}/${{ env.BUILD_TYPE }}"
fi
# always strip on MinGW as it generate massive artifacts
if [ '${{ matrix.config.compiler }}' == 'mingw' ]; then
# arch-specific strip prefix
# TODO maybe extract from cross toolchain files?
toolPrefix="-w64-mingw32-"
if [ '${{ matrix.config.arch }}' == 'x86_64' ]; then
toolPrefix="x86_64${toolPrefix}"
else
toolPrefix="i686${toolPrefix}"
fi
${toolPrefix}strip -s "${binPath}/furnace.exe"
fi
#if [ '${{ matrix.config.compiler }}' == 'mingw' ]; then
# # arch-specific strip prefix
# # TODO maybe extract from cross toolchain files?
# toolPrefix="-w64-mingw32-"
# if [ '${{ matrix.config.arch }}' == 'x86_64' ]; then
# toolPrefix="x86_64${toolPrefix}"
# else
# toolPrefix="i686${toolPrefix}"
# fi
# ${toolPrefix}strip -s "${binPath}/furnace.exe"
#fi
mkdir ${{ steps.package-identify.outputs.filename }}
pushd ${{ steps.package-identify.outputs.filename }}
@ -258,9 +258,9 @@ jobs:
- name: Package [Ubuntu]
if: ${{ runner.os == 'Linux' && matrix.config.compiler != 'mingw' }}
run: |
if [ '${{ env.BUILD_TYPE }}' == 'Release' ]; then
strip -s build/furnace
fi
#if [ '${{ env.BUILD_TYPE }}' == 'Release' ]; then
# strip -s build/furnace
#fi
mkdir -p target/furnace.AppDir
make -C ${PWD}/build DESTDIR=${PWD}/target/furnace.AppDir install