Skip to content

Commit

Permalink
ci: add github actions build
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Oct 28, 2024
1 parent 2d15d7d commit 43cefa7
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 0 deletions.
Binary file removed .DS_Store
Binary file not shown.
41 changes: 41 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build
on:
push:

jobs:
build-project:
strategy:
matrix:
config:
- {
os: ubuntu-latest,
cmake_options: "",
dependencies: "sudo apt update -yqq && sudo apt -yqq install libboost-dev"
}
- {
os: macos-latest,
cmake_options: "CMAKE_PREFIX_PATH=/opt/homebrew",
dependencies: "brew install boost eigen && brew link boost eigen"
}
- {
os: windows-latest,
cmake_options: "BOOST_ROOT=c:/local/boost_1_86_0",
dependencies: "choco install eigen -y --no-progress && choco install boost-msvc-14.3 -y --no-progress"
}

runs-on: ${{ matrix.config.os }}
steps:
- name: Checkout Project
uses: actions/checkout@v4
with:
submodules: recursive

- name: Dependencies
run: ${{ matrix.config.dependencies }}

- name: Build Project
uses: threeal/[email protected]
with:
options: |
${{ matrix.config.cmake_options }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
build/
.vscode/
*.user
Expand Down
9 changes: 9 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ project(
### Library options ###
option(PUARA_GESTURES_ENABLE_TESTING "Enable building and running Puara gestures tests" ON)

### Dependencies ###
if(POLICY CMP0167)
cmake_policy(SET CMP0167 OLD)
endif()
find_package(Boost REQUIRED)

### Main library ###
add_library(puara_gestures
3rdparty/IMU_Sensor_Fusion/imu_orientation.h
Expand Down Expand Up @@ -37,7 +43,10 @@ add_library(puara_gestures
src/puara_gestures.cpp
)

target_compile_definitions(puara_gestures PUBLIC $<$<BOOL:${WIN32}>:_USE_MATH_DEFINES>)
target_include_directories(puara_gestures PUBLIC include 3rdparty)
target_compile_features(puara_gestures PUBLIC cxx_std_17)
target_link_libraries(puara_gestures PUBLIC Boost::headers)

### Tests ###
if(PUARA_GESTURES_ENABLE_TESTING)
Expand Down
Binary file removed standalone/.DS_Store
Binary file not shown.

0 comments on commit 43cefa7

Please sign in to comment.