-
Notifications
You must be signed in to change notification settings - Fork 51
51 lines (47 loc) · 1.45 KB
/
macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: pomdp-py repo macOS build
on:
push:
branches: [ main, dev-latest ]
pull_request:
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
- ready_for_review
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build dependencies
run: |
# Install pomdp-solve macOS binary
wget -P thirdparty https://www.pomdp.org/code/pomdp-solve-os-x.bin
chmod +x thirdparty/pomdp-solve-os-x.bin
# Build and install SARSOP
git clone https://github.com/personalrobotics/appl.git thirdparty/appl
# Fix Arm build (remove -mfpmath=sse) and declare implict functions
git -C thirdparty/appl apply ../../tests/appl.patch
make -C thirdparty/appl/src
make -C thirdparty/appl/src install
- 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-os-x.bin
export POMDPSOL_PATH=./thirdparty/appl/bin/pomdpsol
export POMDPCONVERT_PATH=./thirdparty/appl/src/pomdpconvert
python tests/test_all.py