docker.sh 593 B

123456789101112131415161718
  1. #!/bin/bash -ex
  2. apt-get update
  3. apt-get install --no-install-recommends -y build-essential git libqt5opengl5-dev libsdl2-dev libssl-dev python qtbase5-dev wget cmake ninja-build ccache
  4. cd /yuzu
  5. export PATH=/usr/lib/ccache:$PATH
  6. ln -sf /usr/bin/ccache /usr/lib/ccache/cc
  7. ln -sf /usr/bin/ccache /usr/lib/ccache/c++
  8. mkdir build && cd build
  9. ccache --show-stats > ccache_before
  10. cmake .. -DYUZU_BUILD_UNICORN=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_COMPATIBILITY_LIST_DOWNLOAD=ON -G Ninja
  11. ninja
  12. ccache --show-stats > ccache_after
  13. diff -U100 ccache_before ccache_after || true
  14. ctest -VV -C Release