The source code and dockerfile for the GSW2024 AI Lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

34 lines
696 B

4 weeks ago
  1. #!/usr/bin/env bash
  2. git fetch --unshallow
  3. if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
  4. mkdir -p ~/usr/bin/
  5. PREFIX=`cd ~/usr; pwd`
  6. if [ ! -f $PREFIX/bin/cmake ]; then
  7. wget -nv https://cmake.org/files/v3.7/cmake-3.7.2-Linux-x86_64.sh
  8. chmod +x cmake-3.7.2-Linux-x86_64.sh
  9. ./cmake-3.7.2-Linux-x86_64.sh --prefix=$PREFIX --exclude-subdir --skip-license
  10. fi
  11. export PATH="$PREFIX/bin:$PATH"
  12. elif [[ ${TRAVIS_OS_NAME} == "osx" ]]; then
  13. brew update --quiet
  14. brew install llvm
  15. if [[ ${CXX} == "g++-5" ]]; then
  16. brew install gcc@5
  17. brew link --overwrite gcc@5
  18. elif [[ ${CXX} == "g++-6" ]]; then
  19. brew install gcc@6
  20. brew link --overwrite gcc@6
  21. fi
  22. fi
  23. export CC=$CC
  24. export CXX=$CXX