|
|
@ -1,22 +1,6 @@
|
|
|
|
stages:
|
|
|
|
stages:
|
|
|
|
- format
|
|
|
|
- format
|
|
|
|
- build
|
|
|
|
- build
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#CLANG FORMAT - CHECKS CODE FOR FORMATTING ISSUES
|
|
|
|
#CLANG FORMAT - CHECKS CODE FOR FORMATTING ISSUES
|
|
|
|
clang-format:
|
|
|
|
clang-format:
|
|
|
|
stage: format
|
|
|
|
stage: format
|
|
|
@ -32,20 +16,11 @@ clang-format:
|
|
|
|
# - Windows
|
|
|
|
# - Windows
|
|
|
|
- Parallelized
|
|
|
|
- Parallelized
|
|
|
|
- Format
|
|
|
|
- Format
|
|
|
|
|
|
|
|
|
|
|
|
#LINUX BUILD - BUILDS LINUX APPIMAGE
|
|
|
|
#LINUX BUILD - BUILDS LINUX APPIMAGE
|
|
|
|
build-linux:
|
|
|
|
build-linux:
|
|
|
|
stage: build
|
|
|
|
stage: build
|
|
|
|
image: suyuemu/cibuild:linux-x64
|
|
|
|
image: suyuemu/cibuild:linux-x64
|
|
|
|
resource_group: linux-ci
|
|
|
|
resource_group: linux-ci
|
|
|
|
cache:
|
|
|
|
|
|
|
|
key: "$CI_COMMIT_REF_NAME-ccache"
|
|
|
|
|
|
|
|
paths:
|
|
|
|
|
|
|
|
- $CACHE_DIR
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
|
|
|
|
- mkdir -p $CACHE_DIR
|
|
|
|
|
|
|
|
- chmod -R 777 $CACHE_DIR
|
|
|
|
|
|
|
|
- ls -la $CACHE_DIR
|
|
|
|
|
|
|
|
variables:
|
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
GIT_SUBMODULE_DEPTH: 1
|
|
|
|
GIT_SUBMODULE_DEPTH: 1
|
|
|
@ -59,7 +34,6 @@ build-linux:
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- Linux
|
|
|
|
- Linux
|
|
|
|
- Parallelized
|
|
|
|
- Parallelized
|
|
|
|
|
|
|
|
|
|
|
|
#ANDROID BUILD - BUILDS APK
|
|
|
|
#ANDROID BUILD - BUILDS APK
|
|
|
|
android:
|
|
|
|
android:
|
|
|
|
stage: build
|
|
|
|
stage: build
|
|
|
@ -78,6 +52,5 @@ android:
|
|
|
|
paths:
|
|
|
|
paths:
|
|
|
|
- artifacts/*
|
|
|
|
- artifacts/*
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|
- Linux
|
|
|
|
- Android
|
|
|
|
- Parallelized
|
|
|
|
- Parallelized
|
|
|
|
|
|
|
|
|
|
|
|