Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup python CI #382

Merged
merged 11 commits into from
Sep 26, 2023
15 changes: 11 additions & 4 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,26 @@ jobs:
- name: Python Dependencies
run: |
# Install dependencies for gtwrap
pip3 install -U setuptools numpy pyparsing pyyaml
pip3 install -U pip setuptools numpy pyparsing pyyaml

- name: GTSAM (Linux)
if: runner.os == 'Linux'
run: |
# Install gtsam
git clone https://github.com/borglab/gtsam.git /home/runner/work/gtsam
cd /home/runner/work/gtsam
# Clone gtsam
git clone https://github.com/borglab/gtsam.git $GITHUB_WORKSPACE/gtsam
cd $GITHUB_WORKSPACE/gtsam

# Build & Install gtsam
mkdir build && cd $_
cmake -D GTSAM_BUILD_EXAMPLES_ALWAYS=OFF -DGTSAM_BUILD_PYTHON=ON ..
sudo make -j$(nproc) install && sudo make python-install
sudo ldconfig

cd $GITHUB_WORKSPACE # go back to home directory

# Clean up after ourselves since we used `sudo`.
sudo rm -rf $GITHUB_WORKSPACE/gtsam

- name: GTSAM (macOS)
if: runner.os == 'macOS'
run: |
Expand All @@ -111,6 +117,7 @@ jobs:
mkdir build && cd $_
cmake -D GTSAM_BUILD_EXAMPLES_ALWAYS=OFF -DGTSAM_BUILD_PYTHON=ON -DPYTHON_EXECUTABLE=/usr/local/bin/python3 ..
make -j$(sysctl -n hw.physicalcpu) install && make python-install

cd $GITHUB_WORKSPACE # go back to home directory

- name: Checkout
Expand Down
Loading