Skip to content

Commit

Permalink
Add pomdp-solve repo as submodule (#51)
Browse files Browse the repository at this point in the history
* add pomdp-solve as submodule

* build pomdp-solve in ubuntu ci
  • Loading branch information
zkytony authored Feb 6, 2024
1 parent 9ae96d5 commit 588d594
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pomdp-py macOS build
name: pomdp-py repo macOS build

on:
push:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: pomdp-py repo ubuntu build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build dependencies
run: |
# build pomdp-solve
sudo apt-get update
sudo apt-get install -y autoconf automake libtool
cd thirdparty/pomdp-solve
./configure
make
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Test
working-directory: .
run: |
export POMDP_SOLVE_PATH=./thirdparty/pomdp-solve/src/pomdp-solve
python tests/test_all.py
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "thirdparty/pomdp-solve"]
path = thirdparty/pomdp-solve
url = [email protected]:cassandra/pomdp-solve.git
1 change: 1 addition & 0 deletions thirdparty/pomdp-solve
Submodule pomdp-solve added at 4f5d39

0 comments on commit 588d594

Please sign in to comment.