1414 - run : cmake -E make_directory build
1515 - run : cmake -E chdir build cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SIMD=OFF ..
1616 - run : cmake --build build
17- - run : cmake -E chdir build/examples/c/ ./example_lib_opengjk_ce
17+ - run : cmake -E chdir build/scalar/ examples/c/ ./example_lib_opengjk_ce
1818
1919 C_GCC_CXX :
2020 runs-on : ubuntu-latest
2525 - run : cmake -E make_directory build
2626 - run : cmake -E chdir build cmake -DCMAKE_BUILD_TYPE=Release -DFORCE_CXX_COMPILER=ON -DBUILD_SIMD=OFF ..
2727 - run : cmake --build build
28- - run : cmake -E chdir build/examples/c/ ./example_lib_opengjk_ce
28+ - run : cmake -E chdir build/scalar/ examples/c/ ./example_lib_opengjk_ce
2929
3030 C_msvs :
3131 runs-on : windows-latest
4444 - run : cmake -E make_directory build
4545 - run : cmake -E chdir build cmake -DBUILD_SIMD=OFF ..
4646 - run : cmake --build build
47- - run : cmake -E copy build/examples/c/Debug/example_lib_opengjk_ce.exe build/examples/c
48- - run : cmake -E chdir build/examples/c/ ./example_lib_opengjk_ce.exe
47+ - run : cmake -E copy build/scalar/ examples/c/Debug/example_lib_opengjk_ce.exe build/scalar /examples/c
48+ - run : cmake -E chdir build/scalar/ examples/c/ ./example_lib_opengjk_ce.exe
4949
5050 Cython :
5151 runs-on : ubuntu-latest
5555 uses : actions/checkout@v4
5656 - run : apt-get update -y && apt-get install python3-setuptools python3-pip -y
5757 - run : pip3 install numpy pytest scipy Cython
58- - run : cd examples/cython/ && python3 setup.py build_ext --inplace && python3 pygjk_trial.py
59- - run : cd examples/cython/ && pytest test.py
58+ - run : cd scalar/ examples/cython/ && python3 setup.py build_ext --inplace && python3 pygjk_trial.py
59+ - run : cd scalar/ examples/cython/ && pytest test.py
6060
6161 PythonCTypes :
6262 runs-on : ubuntu-latest
7979 - name : CMake config
8080 run : cmake -B ${{github.workspace}}/build -DBUILD_SIMD=OFF
8181 env :
82- BUILD_CTYPES : 1
8382 CMAKE_BUILD_TYPE : Release
8483
8584 - name : CMake build
@@ -89,23 +88,23 @@ jobs:
8988 - name : Debug library symbols
9089 run : |
9190 echo "Checking library symbols..."
92- nm -D ${{github.workspace}}/build/libopengjk_ce .so
91+ nm -D ${{github.workspace}}/build/scalar/libopengjk_scalar .so
9392 echo "Checking library dependencies..."
94- ldd ${{github.workspace}}/build/libopengjk_ce .so
93+ ldd ${{github.workspace}}/build/scalar/libopengjk_scalar .so
9594
9695 - name : Copy library to module directory
9796 run : |
9897 # Create the destination directory if it doesn't exist
99- mkdir -p ${{github.workspace}}/examples/python_ctypes/src/pyopengjk/
100- # Copy the library to the module directory
101- cp ${{github.workspace}}/build/libopengjk_ce .so ${{github.workspace}}/examples/python_ctypes/src/pyopengjk/
98+ mkdir -p ${{github.workspace}}/scalar/ examples/python_ctypes/src/pyopengjk/
99+ # Copy the library to the module directory (renamed for compatibility)
100+ cp ${{github.workspace}}/build/scalar/libopengjk_scalar .so ${{github.workspace}}/scalar/ examples/python_ctypes/src/pyopengjk/libopengjk_ce.so
102101
103102 - name : Python build
104- working-directory : ${{github.workspace}}/examples/python_ctypes/
103+ working-directory : ${{github.workspace}}/scalar/ examples/python_ctypes/
105104 run : pip install -e .[test]
106105
107106 - name : Python test
108- working-directory : ${{github.workspace}}/examples/python_ctypes/
107+ working-directory : ${{github.workspace}}/scalar/ examples/python_ctypes/
109108 run : pytest -vv
110109
111110 CSharp :
@@ -121,11 +120,10 @@ jobs:
121120 apt-get install gcc g++ cmake mono-devel -y
122121 - run : cmake -E make_directory build
123122 # Using single precision
124- - run : cmake -E chdir build cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_MONO=ON -DSINGLE_PRECISION=ON -DBUILD_SIMD=OFF ..
125- - run : cmake --build build --target opengjk_ce
126- - run : cmake -E chdir build make install
127- - run : cmake -E copy build/*opengjk_ce* examples/cs/
128- - run : cd examples/cs/ && mcs -out:main.exe main.cs && mono main.exe
123+ - run : cmake -E chdir build cmake -DCMAKE_BUILD_TYPE=Release -DUSE_32BITS=ON -DBUILD_SIMD=OFF ..
124+ - run : cmake --build build --target opengjk_scalar
125+ - run : cmake -E copy build/scalar/*opengjk_scalar* scalar/examples/cs/
126+ - run : cd scalar/examples/cs/ && mcs -out:main.exe main.cs && mono main.exe
129127
130128 GO :
131129 runs-on : ubuntu-latest
@@ -136,15 +134,15 @@ jobs:
136134 uses : actions/setup-go@v3
137135 with :
138136 go-version : 1.15
139- - run : cd examples/go/openGJK && go build && go test -v
137+ - run : cd scalar/ examples/go/openGJK && go build && go test -v
140138
141139 Octave :
142140 runs-on : ubuntu-latest
143141 container : gnuoctave/octave:7.3.0
144142 steps :
145143 - name : Check out repository code
146144 uses : actions/checkout@v4
147- - run : cd examples/matlab/; octave runme.m
145+ - run : cd scalar/ examples/matlab/; octave runme.m
148146
149147 Zig :
150148 runs-on : ubuntu-latest
@@ -155,5 +153,5 @@ jobs:
155153 with :
156154 version : 0.13.0
157155 - name : Build and run
158- run : cd examples/zig && zig build && zig build run
156+ run : cd scalar/ examples/zig && zig build && zig build run
159157
0 commit comments