.gitlab-ci.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. stages:
  2. - format
  3. - build
  4. #CLANG FORMAT - CHECKS CODE FOR FORMATTING ISSUES
  5. clang-format:
  6. stage: format
  7. image: suyuemu/cibuild:clangformat
  8. #THIS HAS TO BE FALSE. IT KEEPS RESOURCES AVAILABLE - EG RUNNERS WONT TRY BUILDING IF CODEBASE IS WRONG
  9. #MR's NEED TO BE CORRECTLY CLANG FORMATTED
  10. allow_failure: false
  11. script:
  12. - git submodule update --init --depth 1 --recursive
  13. - bash .ci/scripts/format/script.sh
  14. tags:
  15. # - Linux
  16. # - Windows
  17. - Parallelized
  18. #LINUX BUILD - BUILDS LINUX APPIMAGE
  19. build-linux:
  20. stage: build
  21. image: suyuemu/cibuild:linux-x64
  22. resource_group: linux-ci
  23. variables:
  24. GIT_SUBMODULE_STRATEGY: recursive
  25. GIT_SUBMODULE_DEPTH: 1
  26. RELEASE_NAME: mainline
  27. script:
  28. - bash .ci/scripts/linux/docker.sh
  29. - bash .ci/scripts/linux/upload.sh
  30. artifacts:
  31. paths:
  32. - artifacts/*
  33. tags:
  34. - Linux
  35. - Parallelized
  36. #ANDROID BUILD - BUILDS APK
  37. android:
  38. stage: build
  39. image: suyuemu/cibuild:android-x64
  40. script:
  41. - apt-get update -y
  42. - git submodule update --init --recursive
  43. - cd externals/vcpkg
  44. - git fetch --unshallow || true
  45. - cd ../..
  46. - export ANDROID_HOME="/usr/lib/android-sdk/"
  47. - echo y | sdkmanager --sdk_root=/usr/lib/android-sdk --licenses
  48. - bash ./.ci/scripts/android/build.sh
  49. - bash ./.ci/scripts/android/upload.sh
  50. artifacts:
  51. paths:
  52. - artifacts/*
  53. tags:
  54. - Linux
  55. - Parallelized