.gitlab-ci.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. variables:
  2. GIT_SUBMODULE_STRATEGY: normal
  3. image: registry.gitlab.com/sammko/asteroids/build-env:v1
  4. build:linux:
  5. stage: build
  6. script:
  7. - mkdir build-linux && cd build-linux
  8. - cmake -D CMAKE_BUILD_TYPE=Release ..
  9. - make
  10. - strip asteroids
  11. - make zip
  12. - mv asteroids.zip ../asteroids-linux.zip
  13. artifacts:
  14. paths:
  15. - asteroids-linux.zip
  16. build:win64:
  17. stage: build
  18. script:
  19. - mkdir build-win64 && cd build-win64
  20. - >-
  21. cmake
  22. -D CMAKE_BUILD_TYPE=Release
  23. -D CMAKE_TOOLCHAIN_FILE=../cmake/x86_64-w64-mingw32.cmake
  24. ..
  25. - make
  26. - strip asteroids.exe
  27. - make zip
  28. - mv asteroids.zip ../asteroids-win64.zip
  29. artifacts:
  30. paths:
  31. - asteroids-win64.zip
  32. build:win32:
  33. stage: build
  34. script:
  35. - mkdir build-win32 && cd build-win32
  36. - >-
  37. cmake
  38. -D CMAKE_BUILD_TYPE=Release
  39. -D CMAKE_TOOLCHAIN_FILE=../cmake/i686-w64-mingw32.cmake
  40. ..
  41. - make
  42. - strip asteroids.exe
  43. - make zip
  44. - mv asteroids.zip ../asteroids-win32.zip
  45. artifacts:
  46. paths:
  47. - asteroids-win32.zip
  48. fput:
  49. stage: deploy
  50. script:
  51. - ./ci_scripts/fput.sh