Skip to content

Commit

Permalink
ci: added ci to build python binding
Browse files Browse the repository at this point in the history
  • Loading branch information
rdu-weston committed May 9, 2024
1 parent 055a38d commit 2335cf5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/pybind-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Cpp

on:
push:
pull_request:
branches:
- main

jobs:
build:
strategy:
matrix:
os: [ ubuntu-22.04, ubuntu-20.04 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
recursive: true
- name: Install dependencies
run: sudo apt-get install -y build-essential cmake libasio-dev python3-dev
- name: Build python package
run: python setup.py build_ext --inplace
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ $ cmake .. && make

If you need Python binding, you can build the package with the following command

```bash
$ sudo apt-get install python3-dev
```

```
$ git clone --recursive https://github.com/westonrobot/ugv_sdk.git
$ cd ugv_sdk
Expand Down

0 comments on commit 2335cf5

Please sign in to comment.