version: 1.0.{build} branches: only: - master image: - Visual Studio 2019 - Ubuntu1804 - macOS clone_depth: 1 install: - cmd: >- git submodule update --init --depth 1 - sh: >- if [ "$APPVEYOR_BUILD_WORKER_IMAGE" == "Ubuntu1804" ]; then sudo apt-get update sudo apt-get install -y cmake ninja-build ccache libsdl2-dev libgtk2.0-dev qtbase5-dev qtbase5-dev-tools qt5-default 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 rm -f bin/x64/common-tests* "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 mkdir -p build-release cd build-release cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SDL_FRONTEND=ON -DBUILD_QT_FRONTEND=ON -DUSE_SDL2=ON -G Ninja .. ninja wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage chmod +x linuxdeploy-x86_64.AppImage chmod +x linuxdeploy-plugin-qt-x86_64.AppImage cp ../appimage/duckstation-icon.png ../appimage/duckstation-qt.png cp ../appimage/duckstation-icon.png ../appimage/duckstation-sdl.png ./linuxdeploy-x86_64.AppImage --appdir=./AppDir-duckstation-qt --executable=./src/duckstation-qt/duckstation-qt --create-desktop-file --icon-file=../appimage/duckstation-qt.png --plugin=qt --output=appimage ./linuxdeploy-x86_64.AppImage --appdir=./AppDir-duckstation-sdl --executable=./src/duckstation-sdl/duckstation-sdl --create-desktop-file --icon-file=../appimage/duckstation-sdl.png --output=appimage 7za a -r duckstation-linux-x64-release.7z duckstation-*.AppImage appveyor PushArtifact duckstation-linux-x64-release.7z 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