1111 CTEST_OUTPUT_ON_FAILURE : ON
1212 CTEST_PARALLEL_LEVEL : 2
1313 CMAKE_BUILD_TYPE : ${{ matrix.build_type }}
14- PYTHON_VERSION : ${{ matrix.python_version }}
15- VENV_PATH : ${{ github.workspace }}/venv
16- VENV_PYTHON_EXECUTABLE : ${{ github.workspace }}/venv/bin/python
1714
1815 strategy :
1916 fail-fast : false
2320 name : [ubuntu-22.04-gcc-9, ubuntu-22.04-clang-12, macos-14-xcode-15.4]
2421
2522 build_type : [Debug, Release]
26- python_version : [3]
23+ python_version : [3.11 ]
2724 include :
2825 - name : ubuntu-22.04-gcc-9
2926 os : ubuntu-22.04
4138 version : " 15.4"
4239
4340 steps :
41+ - name : Checkout
42+ uses : actions/checkout@v4
43+
44+ - uses : actions/setup-python@v6
45+ with :
46+ python-version : ${{ matrix.python_version }}
47+
4448 - name : Install Dependencies (Linux)
4549 if : runner.os == 'Linux'
4650 run : |
@@ -76,14 +80,11 @@ jobs:
7680 brew install boost
7781 brew tap borglab/core
7882
79- - name : Python Dependencies inside venv
83+ - name : Python Dependencies
8084 shell : bash
8185 run : |
82- python${{ env.PYTHON_VERSION }} -m venv ${{ env.VENV_PATH }}
83- source ${{ env.VENV_PATH }}/bin/activate
84- echo "${{ env.VENV_PATH }}/bin" >> $GITHUB_PATH
85- ${{ env.VENV_PYTHON_EXECUTABLE }} -m pip install --upgrade pip
86- ${{ env.VENV_PYTHON_EXECUTABLE }} -m pip install -U "setuptools<70" wheel "numpy>=1.11.0" pyparsing pyyaml "pybind11-stubgen>=2.5.1"
86+ pip install --upgrade pip
87+ pip install -U "setuptools<70" wheel "numpy>=1.11.0" pyparsing pyyaml "pybind11-stubgen>=2.5.1"
8788
8889 - name : Install GTSAM (Linux)
8990 if : runner.os == 'Linux'
9495 cmake -DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF \
9596 -DGTSAM_BUILD_PYTHON=ON \
9697 -DGTSAM_WITH_TBB=OFF \
97- -DPYTHON_EXECUTABLE=${{ env.VENV_PYTHON_EXECUTABLE }} \
9898 ..
9999 sudo make -j4 install
100100 make -j4 python-install
@@ -111,29 +111,21 @@ jobs:
111111 cmake -DGTSAM_BUILD_EXAMPLES_ALWAYS=OFF \
112112 -DGTSAM_BUILD_PYTHON=ON \
113113 -DGTSAM_WITH_TBB=OFF \
114- -DPYTHON_EXECUTABLE=${{ env.VENV_PYTHON_EXECUTABLE }} \
115114 ..
116115 sudo make -j4 install
117116 make -j4 python-install
118117 cd ${{ github.workspace }} # go back to home directory
119118 sudo rm -rf /tmp/gtsam_source
120119
121- - name : Checkout
122- uses : actions/checkout@v4
123-
124120 - name : Build Directory
125121 run : mkdir build
126122
127123 - name : Configure
128124 run : |
129125 cmake -DGPMP2_BUILD_PYTHON_TOOLBOX=ON \
130- -DPYTHON_EXECUTABLE=${{ env.VENV_PYTHON_EXECUTABLE }} \
131126 ..
132127 working-directory : ./build
133128
134- - name : Setup tmate session
135- uses : mxschmitt/action-tmate@v3
136-
137129 - name : Build
138130 run : make -j4
139131 working-directory : ./build
0 commit comments