.gitlab-ci.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #LINUX BUILD - BUILDS LINUX APPIMAGE
  15. build-linux:
  16. stage: build
  17. image: suyuemu/cibuild:linux-x64
  18. resource_group: linux-ci
  19. variables:
  20. GIT_SUBMODULE_STRATEGY: recursive
  21. GIT_SUBMODULE_DEPTH: 1
  22. RELEASE_NAME: mainline
  23. script:
  24. - bash .ci/scripts/linux/docker.sh
  25. - bash .ci/scripts/linux/upload.sh
  26. artifacts:
  27. paths:
  28. - artifacts/*
  29. #ANDROID BUILD - BUILDS APK
  30. android:
  31. stage: build
  32. image: suyuemu/cibuild:android-x64
  33. script:
  34. - apt-get update -y
  35. - git submodule update --init --recursive
  36. - cd externals/vcpkg
  37. - git fetch --unshallow || true
  38. - cd ../..
  39. - export ANDROID_HOME="/usr/lib/android-sdk/"
  40. - echo y | sdkmanager --sdk_root=/usr/lib/android-sdk --licenses
  41. - bash ./.ci/scripts/android/build.sh
  42. - bash ./.ci/scripts/android/upload.sh
  43. artifacts:
  44. paths:
  45. - artifacts/*