Skip to content

Commit

Permalink
Fix for githib action on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
pbosetti committed Jul 22, 2024
1 parent e879a96 commit 35fe0cb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ jobs:
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Install deps
if: matrix.os == 'ubuntu-latest'
run: >
sudo apt-get update
sudo apt-get install -y uuid-dev
- 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
7 changes: 5 additions & 2 deletions src/plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ add_plugin(to_console)
add_plugin(random)
add_plugin(running_avg)
add_plugin(worker)
add_plugin(spawner)

if(UNIX AND NOT APPLE)
add_plugin(spawner LIBS uuid)
elseif(APPLE)
add_plugin(spawner)
endif()

# CONDITIONAL PLUGINS ##########################################################
# These plugins are only built if the required dependencies are available.
Expand Down

0 comments on commit 35fe0cb

Please sign in to comment.