From ff94e6b3ddc19aff66a5586cee391857e918dfb9 Mon Sep 17 00:00:00 2001 From: Artemis Rosman <73006620+rozukke@users.noreply.github.com> Date: Thu, 3 Oct 2024 14:45:03 +1000 Subject: [PATCH] Fix relative directory --- .github/workflows/ci.yml | 5 +++-- CMakeLists.txt | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index feb355f8..9b062a53 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ubuntu-latest,macos-latest] - + runs-on: ${{ matrix.os }} steps: # Start and join the Spigot Server @@ -42,8 +42,9 @@ jobs: run: sudo ldconfig - name: Compile and link library + working-directory: ./build run: make examples - name: Run example working-directory: ./build - run: hello_minecraft + run: ./hello_minecraft diff --git a/CMakeLists.txt b/CMakeLists.txt index dd4e0cd8..85cf0b8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,9 +60,9 @@ add_executable(minesweeper EXCLUDE_FROM_ALL example/minesweeper/minesweeper.cpp) target_link_libraries(minesweeper ${PROJECT_NAME}) add_executable(video_mc EXCLUDE_FROM_ALL example/video-generation/video-mc.cpp) target_link_libraries(video_mc ${PROJECT_NAME}) -add_executable(model_mc EXCLUDE_FROM_ALL example/model-generation/model-mc.cpp) -target_link_libraries(model_mc ${PROJECT_NAME}) -add_custom_target(examples hello_minecraft pyramid game_of_life minesweeper video_mc model_mc) +add_executable(obj_mc EXCLUDE_FROM_ALL example/model-generation/obj-mc.cpp) +target_link_libraries(obj_mc ${PROJECT_NAME}) +add_custom_target(examples hello_minecraft pyramid game_of_life minesweeper video_mc obj_mc) # CPack setup SET(CPACK_GENERATOR "DEB")