Skip to content

Commit

Permalink
Fix relative directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rozukke committed Oct 3, 2024
1 parent 110e8a8 commit ff94e6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest,macos-latest]

runs-on: ${{ matrix.os }}
steps:
# Start and join the Spigot Server
Expand Down Expand Up @@ -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
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ff94e6b

Please sign in to comment.