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
|
2024-03-14 22:45:27 +00:00
|
|
|
|
|
|
|
variables:
|
|
|
|
# https://docs.gitlab.com/ee/ci/runners/configure_runners.html
|
|
|
|
TRANSFER_METER_FREQUENCY: "2s"
|
|
|
|
ARTIFACT_COMPRESSION_LEVEL: "fast"
|
|
|
|
CACHE_COMPRESSION_LEVEL: "fastest"
|
|
|
|
CACHE_REQUEST_TIMEOUT: 5
|
|
|
|
# Use FASTZIP for faster compression in cache and artifacts
|
|
|
|
# https://docs.gitlab.com/runner/configuration/feature-flags.html#available-feature-flags
|
|
|
|
FF_USE_FASTZIP: true
|
|
|
|
|
|
|
|
# Our Variables
|
|
|
|
CACHE_DIR: "$CI_PROJECT_DIR/ccache"
|
|
|
|
CCACHE_DIR: $CACHE_DIR
|
|
|
|
|
2024-03-14 21:35:22 +00:00
|
|
|
#CLANG FORMAT - CHECKS CODE FOR FORMATTING ISSUES
|
2024-03-08 19:26:40 +00:00
|
|
|
clang-format:
|
|
|
|
stage: format
|
2024-03-14 21:35:22 +00:00
|
|
|
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
|
2024-03-14 22:45:27 +00:00
|
|
|
|
2024-03-14 21:35:22 +00:00
|
|
|
#LINUX BUILD - BUILDS LINUX APPIMAGE
|
2024-03-07 16:36:40 +00:00
|
|
|
build-linux:
|
2024-03-07 00:05:52 +00:00
|
|
|
stage: build
|
2024-03-14 21:35:22 +00:00
|
|
|
image: registry.gitlab.com/ddutchie/ci-docker:linux-x64
|
2024-03-07 16:36:40 +00:00
|
|
|
resource_group: linux-ci
|
2024-03-14 22:45:27 +00:00
|
|
|
cache:
|
|
|
|
key: "$CI_COMMIT_REF_NAME-ccache"
|
|
|
|
paths:
|
|
|
|
- $CACHE_DIR
|
|
|
|
before_script:
|
|
|
|
- mkdir -p $CACHE_DIR
|
2024-03-14 23:32:16 +00:00
|
|
|
- chmod -R 777 $CACHE_DIR
|
2024-03-14 22:45:27 +00:00
|
|
|
- ls -la $CACHE_DIR
|
2024-03-07 16:36:40 +00:00
|
|
|
variables:
|
2024-03-14 21:35:22 +00:00
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
GIT_SUBMODULE_DEPTH: 1
|
|
|
|
RELEASE_NAME: mainline
|
2024-03-07 00:05:52 +00:00
|
|
|
script:
|
2024-03-07 16:36:40 +00:00
|
|
|
- bash .ci/scripts/linux/docker.sh
|
|
|
|
- bash .ci/scripts/linux/upload.sh
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- artifacts/*
|
2024-03-14 22:45:27 +00:00
|
|
|
|
2024-03-14 21:35:22 +00:00
|
|
|
#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
|
|
|
|
- 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/*
|
2024-03-14 22:45:27 +00:00
|
|
|
|