Skip to content

Commit 65e880e

Browse files
Build Sample Nodes By Default to Fix Github Action (#332)
* Fix github action * Change working directory in github action step * Build samples by default
1 parent 472a564 commit 65e880e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/build_ubuntu.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
- name: apt
1414
run: sudo apt-get update && sudo apt-get install -yq libzmq3-dev libdw-dev libgtest-dev cmake
1515
- name: Install gtest manually
16-
run: cd /usr/src/gtest && sudo cmake CMakeLists.txt && sudo make && sudo cp lib/*.a /usr/lib
16+
working-directory: /usr/src/gtest
17+
run: sudo cmake CMakeLists.txt && sudo make && sudo cp lib/*.a /usr/lib
1718
# build project
1819
- name: mkdir
1920
run: mkdir build

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
4242

4343
#---- project configuration ----
4444
option(BUILD_EXAMPLES "Build tutorials and examples" ON)
45+
option(BUILD_SAMPLES "Build sample nodes" ON)
4546
option(BUILD_UNIT_TESTS "Build the unit tests" ON)
4647
option(BUILD_TOOLS "Build commandline tools" ON)
4748
option(BUILD_SHARED_LIBS "Build shared libraries" ON)

0 commit comments

Comments
 (0)