mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 02:00:30 +01:00
Properly strip windows binaries produced by CI
This commit is contained in:
parent
401e769114
commit
fc4eda0f44
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -77,7 +77,7 @@ jobs:
|
|||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: irrlicht-win32
|
name: irrlicht-win32
|
||||||
path: ./irrlicht-windows.zip
|
path: ./irrlicht-win32.zip
|
||||||
|
|
||||||
win64:
|
win64:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
@ -99,7 +99,7 @@ jobs:
|
|||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: irrlicht-win64
|
name: irrlicht-win64
|
||||||
path: ./irrlicht-windows.zip
|
path: ./irrlicht-win64.zip
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
runs-on: macos-10.15
|
runs-on: macos-10.15
|
||||||
|
@ -34,15 +34,17 @@ tmp=(
|
|||||||
-DZLIB_LIBRARY=$libs/zlib/lib/libz.dll.a \
|
-DZLIB_LIBRARY=$libs/zlib/lib/libz.dll.a \
|
||||||
-DZLIB_INCLUDE_DIR=$libs/zlib/include
|
-DZLIB_INCLUDE_DIR=$libs/zlib/include
|
||||||
)
|
)
|
||||||
[ "$1" = "package" ] && tmp+=(-DCMAKE_EXE_LINKER_FLAGS="-s")
|
|
||||||
|
|
||||||
cmake . "${tmp[@]}"
|
cmake . "${tmp[@]}"
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
|
|
||||||
if [ "$1" = "package" ]; then
|
if [ "$1" = "package" ]; then
|
||||||
make DESTDIR=$PWD/_install install
|
make DESTDIR=$PWD/_install install
|
||||||
|
# strip library
|
||||||
|
"${CXX%-*}-strip" --strip-unneeded _install/usr/local/lib/*.dll
|
||||||
# bundle the DLLs that are specific to Irrlicht (kind of a hack)
|
# bundle the DLLs that are specific to Irrlicht (kind of a hack)
|
||||||
cp -p $libs/*/bin/lib{jpeg,png}*.dll _install/usr/local/lib/
|
cp -p $libs/*/bin/lib{jpeg,png}*.dll _install/usr/local/lib/
|
||||||
(cd _install/usr/local; zip -9r "$OLDPWD"/irrlicht-windows.zip -- *)
|
# create a ZIP
|
||||||
|
(cd _install/usr/local; zip -9r "$OLDPWD"/irrlicht-$variant.zip -- *)
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user