forked from ShuriZma/suyu
1
0
Fork 0
Zuma/.gitlab-ci.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.2 KiB
YAML
Raw Normal View History

2024-03-07 16:36:40 +00:00
stages:
2024-03-08 19:19:32 +00:00
- format
2024-03-08 19:26:40 +00:00
- build
#CLANG FORMAT - CHECKS CODE FOR FORMATTING ISSUES
2024-03-08 19:26:40 +00:00
clang-format:
stage: format
image: registry.gitlab.com/ddutchie/ci-docker:clangformat
#TODO: SET THIS TO FALSE!!!
2024-03-12 04:30:44 +00:00
allow_failure: true
2024-03-08 19:26:40 +00:00
script:
2024-03-08 22:44:03 +00:00
- git submodule update --init --depth 1 --recursive
2024-03-08 19:26:40 +00:00
- bash .ci/scripts/format/script.sh
#LINUX BUILD - BUILDS LINUX APPIMAGE
2024-03-07 16:36:40 +00:00
build-linux:
stage: build
image: registry.gitlab.com/ddutchie/ci-docker:linux-x64
2024-03-07 16:36:40 +00:00
resource_group: linux-ci
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_DEPTH: 1
RELEASE_NAME: mainline
script:
2024-03-07 16:36:40 +00:00
- bash .ci/scripts/linux/docker.sh
- bash .ci/scripts/linux/upload.sh
artifacts:
paths:
- artifacts/*
#ANDROID BUILD - BUILDS APK
android:
stage: build
image: registry.gitlab.com/ddutchie/ci-docker:android-x64
script:
- apt-get update -y
- git submodule update --init --recursive
2024-03-15 09:13:02 +00:00
- cd externals/vcpkg && git fetch --unshallow && cd -
- export ANDROID_HOME="/usr/lib/android-sdk/"
- echo y | sdkmanager --sdk_root=/usr/lib/android-sdk --licenses
- bash ./.ci/scripts/android/build.sh
- bash ./.ci/scripts/android/upload.sh
artifacts:
paths:
- artifacts/*