This commit is contained in:
Erris
2026-03-10 07:02:44 +01:00

View File

@@ -23,16 +23,6 @@ jobs:
timeout: 14400 timeout: 14400
- name: Compile for Linux - name: Compile for Linux
steps: steps:
- type: SetupCacheStep
name: conan_cache
key: conan-cache
paths:
- /root/.conan2
uploadStrategy: UPLOAD_IF_CHANGED
changeDetectionExcludes: .onedev-buildspec.yml open_engine/** editor/**
uploadProjectPath: OpenEngine
condition: SUCCESSFUL
optional: false
- type: CheckoutStep - type: CheckoutStep
name: Checkout name: Checkout
cloneCredential: cloneCredential:
@@ -44,15 +34,23 @@ jobs:
- type: CommandStep - type: CommandStep
name: Compile for Linux name: Compile for Linux
runInContainer: true runInContainer: true
image: erriss/erris-build_tools:V0.3 image: erriss/erris-build_tools:V0.4
interpreter: interpreter:
type: DefaultInterpreter type: DefaultInterpreter
commands: | commands: |
conan profile detect --force conan profile detect --force
sed -i 's/cmake_minimum_required(VERSION 3.28)/cmake_minimum_required(VERSION 3.25)/' CMakeLists.txt git submodule update --init --recursive
conan install . --output-folder=. --build=missing -s build_type=${BUILD_TYPE} 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 -S . -G Ninja -B build -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
cmake --build . --config ${BUILD_TYPE}
echo ====== Building =============================
cmake --build build --config ${BUILD_TYPE}
echo ====== ls ===================================
ls -la
echo ====== ls build =============================
ls build -la
envVars: envVars:
- name: BUILD_TYPE - name: BUILD_TYPE
value: Debug value: Debug
@@ -63,6 +61,12 @@ jobs:
useTTY: true useTTY: true
condition: SUCCESSFUL condition: SUCCESSFUL
optional: false optional: false
- type: PublishArtifactStep
name: Get build artifacts
sourcePath: build
artifacts: editor/* open_engine/*
condition: SUCCESSFUL
optional: false
retryCondition: never retryCondition: never
maxRetries: 3 maxRetries: 3
retryDelay: 30 retryDelay: 30