Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,14 @@ jobs:
- name: Install
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target install -j ${{env.MAKE_THREAD_NUM}}

# TODO build test project
# Build the test project (generated from the editor's Default template during 'Configure CMake') against the
# freshly installed engine, verifying the packaged engine and its full_deploy'd dependencies are consumable by
# a downstream project.
- name: Configure Test Project
run: cmake -B ${{github.workspace}}/TestProject/build -S ${{github.workspace}}/TestProject -G=Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENGINE_ROOT=${{github.workspace}}/Installed/Explosion

- name: Build Test Project
run: cmake --build ${{github.workspace}}/TestProject/build --config ${{env.BUILD_TYPE}} -j ${{env.MAKE_THREAD_NUM}}

- name: Install Test Project
run: cmake --build ${{github.workspace}}/TestProject/build --config ${{env.BUILD_TYPE}} --target install -j ${{env.MAKE_THREAD_NUM}}
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ aqtinstall.log
# Claude
CLAUDE.md

# Test Project
TestProject/.idea
TestProject/.vscode
TestProject/cmake-build*
TestProject/build*
# Test Project (generated from the editor's Default project template by CI / tooling)
/TestProject

# macOS
.DS_Store
Expand Down
4 changes: 2 additions & 2 deletions CMake/Common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ${EXPORT_COMPILE_COMMANDS})
# position-independent or the shared link fails with "relocation ... can not be used when making a shared object".
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

if (${CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT})
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/Installed CACHE PATH "" FORCE)
endif()

Expand All @@ -24,7 +24,7 @@ add_compile_definitions(
COMPILER_GCC=$<IF:$<CXX_COMPILER_ID:GNU>,1,0>
)

if (${MSVC})
if (MSVC)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")
add_compile_options(/bigobj)
add_compile_definitions(
Expand Down
Loading
Loading