2020-02-15 12:38:53 +00:00
|
|
|
version: 1.0.{build}
|
2020-05-23 09:18:08 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
skip_tags: true
|
2020-02-15 14:17:07 +00:00
|
|
|
|
2020-02-15 12:38:53 +00:00
|
|
|
image:
|
|
|
|
- Visual Studio 2019
|
2020-04-08 05:26:14 +00:00
|
|
|
- Ubuntu1804
|
2020-02-15 14:39:20 +00:00
|
|
|
- macOS
|
2020-02-15 12:38:53 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
- cmd: >-
|
|
|
|
git submodule update --init --depth 1
|
|
|
|
|
|
|
|
- sh: >-
|
|
|
|
if [ "$APPVEYOR_BUILD_WORKER_IMAGE" == "Ubuntu1804" ]; then
|
|
|
|
|
|
|
|
sudo apt-get update
|
|
|
|
|
2020-04-08 07:28:32 +00:00
|
|
|
sudo apt-get install -y cmake ninja-build ccache libsdl2-dev libgtk2.0-dev qtbase5-dev qtbase5-dev-tools qt5-default
|
2020-02-15 12:38:53 +00:00
|
|
|
|
|
|
|
elif [ "$APPVEYOR_BUILD_WORKER_IMAGE" == "macOS" ]; then
|
|
|
|
|
|
|
|
brew install qt5 sdl2
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
build_script:
|
|
|
|
- cmd: >-
|
|
|
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
|
|
|
|
|
|
|
|
msbuild duckstation.sln -t:Build -p:Platform=x64;Configuration=ReleaseLTCG
|
|
|
|
|
|
|
|
rm -f bin/x64/*.pdb bin/x64/*.exp bin/x64/*.lib bin/x64/*.iobj bin/x64/*.ipdb
|
|
|
|
|
2020-04-02 15:32:06 +00:00
|
|
|
rm -f bin/x64/common-tests*
|
|
|
|
|
2020-04-14 15:49:40 +00:00
|
|
|
cp -a data/* bin/x64
|
|
|
|
|
2020-02-15 12:38:53 +00:00
|
|
|
"C:\Program Files\7-Zip\7z.exe" a -r duckstation-win64-release.7z ./bin/x64/*
|
|
|
|
|
|
|
|
appveyor PushArtifact duckstation-win64-release.7z
|
|
|
|
|
|
|
|
|
|
|
|
- sh: >-
|
|
|
|
if [ "$APPVEYOR_BUILD_WORKER_IMAGE" == "Ubuntu1804" ]; then
|
|
|
|
|
2020-04-08 05:26:14 +00:00
|
|
|
mkdir -p build-release
|
2020-02-15 12:38:53 +00:00
|
|
|
|
2020-04-08 05:26:14 +00:00
|
|
|
cd build-release
|
2020-02-15 12:38:53 +00:00
|
|
|
|
2020-04-08 17:28:45 +00:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SDL_FRONTEND=ON -DBUILD_QT_FRONTEND=ON -DUSE_SDL2=ON -G Ninja ..
|
2020-02-15 12:38:53 +00:00
|
|
|
|
|
|
|
ninja
|
|
|
|
|
2020-04-14 04:36:39 +00:00
|
|
|
../appimage/generate-appimages.sh $(pwd)
|
2020-04-08 05:26:14 +00:00
|
|
|
|
2020-04-14 04:36:39 +00:00
|
|
|
if [ $? -eq 0 ]; then
|
2020-04-08 05:26:14 +00:00
|
|
|
|
2020-04-14 04:36:39 +00:00
|
|
|
mv duckstation-qt-x64.AppImage duckstation-qt-x64-release.AppImage
|
2020-04-08 05:26:14 +00:00
|
|
|
|
2020-04-14 04:36:39 +00:00
|
|
|
mv duckstation-sdl-x64.AppImage duckstation-sdl-x64-release.AppImage
|
2020-04-08 05:26:14 +00:00
|
|
|
|
2020-04-14 04:36:39 +00:00
|
|
|
7za a -r duckstation-linux-x64-release.7z duckstation-*.AppImage
|
2020-04-08 05:26:14 +00:00
|
|
|
|
2020-04-14 04:36:39 +00:00
|
|
|
appveyor PushArtifact duckstation-linux-x64-release.7z
|
2020-04-08 17:28:45 +00:00
|
|
|
|
2020-04-14 04:36:39 +00:00
|
|
|
else
|
2020-04-08 17:28:45 +00:00
|
|
|
|
2020-04-14 04:36:39 +00:00
|
|
|
echo "Failed to create AppImages, no AppImage artifact will be pushed"
|
2020-04-08 17:28:45 +00:00
|
|
|
|
2020-04-14 04:36:39 +00:00
|
|
|
fi
|
2020-04-08 05:26:14 +00:00
|
|
|
|
2020-02-15 12:38:53 +00:00
|
|
|
elif [ "$APPVEYOR_BUILD_WORKER_IMAGE" == "macOS" ]; then
|
|
|
|
|
|
|
|
mkdir build-release
|
|
|
|
|
|
|
|
cd build-release
|
|
|
|
|
|
|
|
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DBUILD_SDL_FRONTEND=YES -DBUILD_QT_FRONTEND=YES -DQt5_DIR=/usr/local/opt/qt/lib/cmake/Qt5 ..
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
test: off
|