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 27, 2024
1 parent 2d15d7d commit af43bfe
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 0 deletions.
Binary file removed .DS_Store
Binary file not shown.
40 changes: 40 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build
on:
push:

jobs:
build-project:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Project
uses: actions/checkout@v4
with:
submodules: recursive

- name: Dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt update -yqq
sudo apt install libboost-dev
- name: Dependencies
if: matrix.os == 'macos-latest'
run: |
brew install boost eigen
brew link boost eigen
- name: Dependencies
if: matrix.os == 'windows-latest'
run: |
choco install eigen -y --no-progress
choco install boost-msvc-14.3 -y --no-progress
- name: Build Project
uses: threeal/[email protected]
with:
options: |
CMAKE_PREFIX_PATH=/opt/homebrew;c:/local/boost_1_86_0
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
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ project(
### Library options ###
option(PUARA_GESTURES_ENABLE_TESTING "Enable building and running Puara gestures tests" ON)

### Dependencies ###
find_package(Boost REQUIRED)

### Main library ###
add_library(puara_gestures
3rdparty/IMU_Sensor_Fusion/imu_orientation.h
Expand Down Expand Up @@ -38,6 +41,8 @@ add_library(puara_gestures
)

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 af43bfe

Please sign in to comment.