From 588d59496b98b9f6a623d992578130d6cdac4db2 Mon Sep 17 00:00:00 2001 From: Kaiyu Zheng <7720184+zkytony@users.noreply.github.com> Date: Tue, 6 Feb 2024 13:05:52 -0500 Subject: [PATCH] Add pomdp-solve repo as submodule (#51) * add pomdp-solve as submodule * build pomdp-solve in ubuntu ci --- .github/workflows/macos.yml | 2 +- .github/workflows/ubuntu.yml | 41 ++++++++++++++++++++++++++++++++++++ .gitmodules | 3 +++ thirdparty/pomdp-solve | 1 + 4 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ubuntu.yml create mode 100644 .gitmodules create mode 160000 thirdparty/pomdp-solve diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 13e3b05..c98f8f5 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -1,4 +1,4 @@ -name: pomdp-py macOS build +name: pomdp-py repo macOS build on: push: diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml new file mode 100644 index 0000000..81a465e --- /dev/null +++ b/.github/workflows/ubuntu.yml @@ -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 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..f169631 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "thirdparty/pomdp-solve"] + path = thirdparty/pomdp-solve + url = git@github.com:cassandra/pomdp-solve.git diff --git a/thirdparty/pomdp-solve b/thirdparty/pomdp-solve new file mode 160000 index 0000000..4f5d399 --- /dev/null +++ b/thirdparty/pomdp-solve @@ -0,0 +1 @@ +Subproject commit 4f5d399f260f7789bc1d95baab069eef5c93aaf9