Skip to content

Commit

Permalink
GH Actions fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
viblo committed Jan 5, 2025
1 parent 2373129 commit 0e2e303
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,14 @@ jobs:
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Install opengl
run: vcpkg install opengl
- name: Install dependencies on Ubuntu
if: runner.os == 'Linux'
run: >
sudo apt-get update && sudo apt-get install -y libgl1-mesa-dev
xorg-dev libblocksruntime-dev
- name: CMake Version
run: cmake --version

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
Expand Down
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ endif()

if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
option(FORCE_CLANG_BLOCKS "Force enable Clang blocks" YES)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-nan-infinity-disabled")
endif()

# sanity checks...
Expand Down
9 changes: 9 additions & 0 deletions demo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
list(APPEND chipmunk_demos_libraries BlocksRuntime)
endif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")



if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
list(APPEND chipmunk_demos_libraries BlocksRuntime)
endif()
endif(CMAKE_SYSTEM_NAME STREQUAL "Linux")


include_directories(${chipmunk_demos_include_dirs})
link_directories(${chipmunk_demos_library_dirs})
add_executable(chipmunk_demos ${chipmunk_demos_source_files})
Expand Down

0 comments on commit 0e2e303

Please sign in to comment.