Files
OpenEngine/.onedev-buildspec.yml
2026-03-10 17:12:20 +01:00

81 lines
2.1 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
jobExecutor: terra-executor
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-@file:conanfile.py@
paths:
- /root/.conan2
uploadStrategy: UPLOAD_IF_CHANGED
changeDetectionExcludes: /root/.conan2/p/*/dl /root/.conan2/logs
condition: SUCCESSFUL
optional: true
- 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.7
interpreter:
type: DefaultInterpreter
commands: |
git submodule update --init --recursive
conan profile detect --force
conan install . -c tools.system.package_manager:mode=install --output-folder=build --build=missing -s build_type=${BUILD_TYPE}
cmake -S . -G Ninja -B build -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
echo ====== Building =============================
cmake --build build --config ${BUILD_TYPE}
envVars:
- name: BUILD_TYPE
value: Debug
- name: CC
value: clang
- name: CXX
value: clang++
useTTY: true
condition: SUCCESSFUL
optional: false
- type: PublishArtifactStep
name: Get build artifacts
sourcePath: build
artifacts: editor/* open_engine/*
condition: SUCCESSFUL
optional: false
jobExecutor: luna-executor
retryCondition: never
maxRetries: 3
retryDelay: 30
timeout: 14400