Use Github Actions instead of Travis

Moved MSVC to Github Actions as well.
This commit is contained in:
Pengfei
2021-06-26 19:30:34 +08:00
parent 3d3b51bb98
commit 412aeaa0d4
27 changed files with 453 additions and 146 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash -ex
set -o pipefail
export MACOSX_DEPLOYMENT_TARGET=10.13
export Qt5_DIR=$(brew --prefix)/opt/qt5
export PATH="/usr/local/opt/ccache/libexec:$PATH"
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j4
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh -ex
brew update
brew unlink python@2 || true
rm '/usr/local/bin/2to3' || true
brew install qt5 sdl2 p7zip ccache llvm ninja || true
pip3 install macpack
+23
View File
@@ -0,0 +1,23 @@
#!/bin/bash -ex
. .ci/common/pre-upload.sh
REV_NAME="threeSD-macos-${GITNAME}"
mkdir "$REV_NAME"
cp -r build/bin/threeSD.app "$REV_NAME"
# move libs into folder for deployment
macpack "${REV_NAME}/threeSD.app/Contents/MacOS/threeSD" -d "../Frameworks"
# move qt frameworks into app bundle for deployment
$(brew --prefix)/opt/qt5/bin/macdeployqt "${REV_NAME}/threeSD.app" -executable="${REV_NAME}/threeSD.app/Contents/MacOS/threeSD"
# Make the launching script executable
chmod +x ${REV_NAME}/threeSD.app/Contents/MacOS/threeSD
# Verify loader instructions
find "$REV_NAME" -exec otool -L {} \;
mkdir "$REV_NAME/dist"
. .ci/common/post-upload.sh