mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 00:03:50 +00:00
fix ci
This commit is contained in:
parent
bb2bf38921
commit
e1ca43797c
2 changed files with 382 additions and 369 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
|
@ -96,7 +96,7 @@ jobs:
|
|||
echo "FidelityFX-SDK Kits framegen headers detected."
|
||||
|
||||
- name: Configure (AMD ON)
|
||||
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DWOWEE_ENABLE_AMD_FSR2=ON
|
||||
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DWOWEE_ENABLE_AMD_FSR2=ON -DWOWEE_BUILD_TESTS=ON
|
||||
|
||||
- name: Assert AMD FSR2 target
|
||||
run: cmake --build build --target wowee_fsr2_amd_vk --parallel ${{ matrix.build_jobs }}
|
||||
|
|
@ -113,6 +113,9 @@ jobs:
|
|||
- name: Build
|
||||
run: cmake --build build --parallel ${{ matrix.build_jobs }}
|
||||
|
||||
- name: Run tests
|
||||
run: cd build && ctest --output-on-failure
|
||||
|
||||
- name: Package (DEB)
|
||||
run: cd build && cpack -G DEB
|
||||
|
||||
|
|
@ -161,7 +164,8 @@ jobs:
|
|||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_PREFIX_PATH="$BREW" \
|
||||
-DOPENSSL_ROOT_DIR="$(brew --prefix openssl@3)" \
|
||||
-DWOWEE_ENABLE_AMD_FSR2=ON
|
||||
-DWOWEE_ENABLE_AMD_FSR2=ON \
|
||||
-DWOWEE_BUILD_TESTS=ON
|
||||
|
||||
- name: Assert AMD FSR2 target
|
||||
run: cmake --build build --target wowee_fsr2_amd_vk --parallel $(sysctl -n hw.logicalcpu)
|
||||
|
|
@ -177,6 +181,9 @@ jobs:
|
|||
- name: Build
|
||||
run: cmake --build build --parallel $(sysctl -n hw.logicalcpu)
|
||||
|
||||
- name: Run tests
|
||||
run: cd build && ctest --output-on-failure
|
||||
|
||||
- name: Create .app bundle
|
||||
run: |
|
||||
mkdir -p Wowee.app/Contents/{MacOS,Frameworks,Resources}
|
||||
|
|
|
|||
|
|
@ -103,6 +103,9 @@ add_executable(test_m2_structs
|
|||
target_include_directories(test_m2_structs PRIVATE ${TEST_INCLUDE_DIRS})
|
||||
target_include_directories(test_m2_structs SYSTEM PRIVATE ${TEST_SYSTEM_INCLUDE_DIRS})
|
||||
target_link_libraries(test_m2_structs PRIVATE catch2_main)
|
||||
if(TARGET glm::glm)
|
||||
target_link_libraries(test_m2_structs PRIVATE glm::glm)
|
||||
endif()
|
||||
add_test(NAME m2_structs COMMAND test_m2_structs)
|
||||
register_test_target(test_m2_structs)
|
||||
|
||||
|
|
@ -126,6 +129,9 @@ add_executable(test_frustum
|
|||
target_include_directories(test_frustum PRIVATE ${TEST_INCLUDE_DIRS})
|
||||
target_include_directories(test_frustum SYSTEM PRIVATE ${TEST_SYSTEM_INCLUDE_DIRS})
|
||||
target_link_libraries(test_frustum PRIVATE catch2_main)
|
||||
if(TARGET glm::glm)
|
||||
target_link_libraries(test_frustum PRIVATE glm::glm)
|
||||
endif()
|
||||
add_test(NAME frustum COMMAND test_frustum)
|
||||
register_test_target(test_frustum)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue