docker.sh 666 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash -ex
  2. # Exit on error, rather than continuing with the rest of the script.
  3. set -e
  4. ccache -s
  5. mkdir build || true && cd build
  6. cmake .. \
  7. -DCMAKE_BUILD_TYPE=Release \
  8. -DCMAKE_CXX_COMPILER=/usr/lib/ccache/clang++ \
  9. -DCMAKE_C_COMPILER=/usr/lib/ccache/clang \
  10. -DCMAKE_INSTALL_PREFIX="/usr" \
  11. -DCMAKE_TOOLCHAIN_FILE=${VCPKG_TOOLCHAIN_FILE} \
  12. -DDISPLAY_VERSION=$1 \
  13. -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON \
  14. -DENABLE_QT_TRANSLATION=ON \
  15. -DUSE_DISCORD_PRESENCE=ON \
  16. -DYUZU_ENABLE_COMPATIBILITY_REPORTING=${ENABLE_COMPATIBILITY_REPORTING:-"OFF"} \
  17. -GNinja
  18. ninja
  19. ccache -s
  20. ctest -VV -C Release