69 lines
1.7 KiB
YAML
69 lines
1.7 KiB
YAML
version: 46
|
|
jobs:
|
|
- name: Push to Gitea
|
|
steps:
|
|
- type: PushRepository
|
|
name: Push to Gitea
|
|
remoteUrl: https://gitea.anfer.fr/anfer/OpenEngine
|
|
passwordSecret: Gitea
|
|
force: false
|
|
condition: SUCCESSFUL
|
|
optional: false
|
|
triggers:
|
|
- type: BranchUpdateTrigger
|
|
branches: main
|
|
userMatch: anyone
|
|
projects: OpenEngine
|
|
- type: TagCreateTrigger
|
|
branches: main
|
|
projects: OpenEngine
|
|
retryCondition: never
|
|
maxRetries: 3
|
|
retryDelay: 30
|
|
timeout: 14400
|
|
- name: Compile for Linux
|
|
steps:
|
|
- type: SetupCacheStep
|
|
name: conan_cache
|
|
key: conan-cache
|
|
paths:
|
|
- /root/.conan2/p
|
|
uploadStrategy: UPLOAD_IF_NOT_HIT
|
|
uploadProjectPath: OpenEngine
|
|
condition: SUCCESSFUL
|
|
optional: false
|
|
- type: CheckoutStep
|
|
name: Checkout
|
|
cloneCredential:
|
|
type: DefaultCredential
|
|
withLfs: false
|
|
withSubmodules: false
|
|
condition: SUCCESSFUL
|
|
optional: false
|
|
- type: CommandStep
|
|
name: Compile for Linux
|
|
runInContainer: true
|
|
image: erriss/erris-build_tools:V0.3
|
|
interpreter:
|
|
type: DefaultInterpreter
|
|
commands: |
|
|
conan profile detect --force
|
|
sed -i 's/cmake_minimum_required(VERSION 3.28)/cmake_minimum_required(VERSION 3.25)/' CMakeLists.txt
|
|
conan install . --output-folder=. --build=missing -s build_type=${BUILD_TYPE}
|
|
cmake -S . -G Ninja -B build -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
|
|
cmake --build . --config ${BUILD_TYPE}
|
|
envVars:
|
|
- name: BUILD_TYPE
|
|
value: Debug
|
|
- name: CC
|
|
value: clang
|
|
- name: CXX
|
|
value: clang++
|
|
useTTY: true
|
|
condition: SUCCESSFUL
|
|
optional: false
|
|
retryCondition: never
|
|
maxRetries: 3
|
|
retryDelay: 30
|
|
timeout: 14400
|