Merge branch 'main' of https://git.anfer.fr/OpenEngine
This commit is contained in:
@@ -23,16 +23,6 @@ jobs:
|
||||
timeout: 14400
|
||||
- name: Compile for Linux
|
||||
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
|
||||
name: Checkout
|
||||
cloneCredential:
|
||||
@@ -44,15 +34,23 @@ jobs:
|
||||
- type: CommandStep
|
||||
name: Compile for Linux
|
||||
runInContainer: true
|
||||
image: erriss/erris-build_tools:V0.3
|
||||
image: erriss/erris-build_tools:V0.4
|
||||
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
|
||||
git submodule update --init --recursive
|
||||
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}
|
||||
|
||||
echo ====== Building =============================
|
||||
cmake --build build --config ${BUILD_TYPE}
|
||||
|
||||
echo ====== ls ===================================
|
||||
ls -la
|
||||
|
||||
echo ====== ls build =============================
|
||||
ls build -la
|
||||
envVars:
|
||||
- name: BUILD_TYPE
|
||||
value: Debug
|
||||
@@ -63,6 +61,12 @@ jobs:
|
||||
useTTY: true
|
||||
condition: SUCCESSFUL
|
||||
optional: false
|
||||
- type: PublishArtifactStep
|
||||
name: Get build artifacts
|
||||
sourcePath: build
|
||||
artifacts: editor/* open_engine/*
|
||||
condition: SUCCESSFUL
|
||||
optional: false
|
||||
retryCondition: never
|
||||
maxRetries: 3
|
||||
retryDelay: 30
|
||||
|
||||
Reference in New Issue
Block a user