mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 19:34:34 +00:00
dcad4146b6
* WIP PR for daily builds of ifcopenshell * fix indentation in yaml * fix branch name * test daily builds using minimum occt ==v7.5.3 * chore: WIP daily builds - add tests * add test script bat/sh. Continue work in PR * fix: add more packages to test requires * fix: remove space in minimum version requirement of numpy * use manually installed MacOSX SDK on github runner. Minor rewrite of dynamic/static zlib conditional for conda_build. * fix MacOSX SDK address and made it platform conditional * make tests pass * try to skip ids tests for common icopenshell builds (caused failure on windows tests probably due to special character in filepath) * add conditional upload and testing of all available platform versions on github actions * fix wrong path to source files * fix errors in tests * remove test files and skip tests * only do import of ifcopenshell as means of testing and rely on the successful completion of ci.yml as a triggering mechanism instead * make conditional switch between original implementation of zlib suffix and new depending on conda packaging or not * point to occt v0.7.6 * make conditional import of BRepAdaptor_HCompCurve * try removing libxml2 include path * minor changes * Test nix builds * Test nix builds using only a single python version (in order to limit cpu/memory usage) * remove run check * remove testing of nix builds * Revert "Test nix builds using only a single python version (in order to limit cpu/memory usage)" This reverts commit22a552a9ac. * Revert "ci-py-only test modification" This reverts part of commitaf1e832f* update occt version to 7.6.2 in daily builds * Revert "Test nix builds" This reverts commitaf1e832f81. * Complete setups for local and cloud environments. And start by adding IfcPerson as a test case for the REST api communication * Revert changing checkout version of MVD
45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
#!/bin/bash
|
|
|
|
declare -a CMAKE_PLATFORM_FLAGS
|
|
|
|
if [[ ${HOST} =~ .*linux.* ]]; then
|
|
CMAKE_PLATFORM_FLAGS+=(-DCMAKE_TOOLCHAIN_FILE=$RECIPE_DIR/cross-linux.cmake)
|
|
fi
|
|
|
|
if [ `uname` == Darwin ]; then
|
|
export CFLAGS="$CFLAGS -Wl,-flat_namespace,-undefined,suppress"
|
|
export CXXFLAGS="$CXXFLAGS -Wl,-flat_namespace,-undefined,suppress"
|
|
export LDFLAGS="$LDFLAGS -Wl,-flat_namespace,-undefined,suppress"
|
|
fi
|
|
|
|
cmake -G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=$PREFIX \
|
|
${CMAKE_PLATFORM_FLAGS[@]} \
|
|
-DCMAKE_PREFIX_PATH=$PREFIX \
|
|
-DCMAKE_SYSTEM_PREFIX_PATH=$PREFIX \
|
|
-DPython3_FIND_STRATEGY=LOCATION \
|
|
-DPython3_FIND_FRAMEWORK=NEVER \
|
|
-DGMP_LIBRARY_DIR=$PREFIX/lib \
|
|
-DMPFR_LIBRARY_DIR=$PREFIX/lib \
|
|
-DOCC_INCLUDE_DIR=$PREFIX/include/opencascade \
|
|
-DOCC_LIBRARY_DIR=$PREFIX/lib \
|
|
-DHDF5_SUPPORT:BOOL=ON \
|
|
-DHDF5_INCLUDE_DIR=$PREFIX/include \
|
|
-DHDF5_LIBRARY_DIR=$PREFIX/lib \
|
|
-DJSON_INCLUDE_DIR=$PREFIX/include \
|
|
-DCGAL_INCLUDE_DIR=$PREFIX/include \
|
|
-DCOLLADA_SUPPORT=0 \
|
|
-DBUILD_EXAMPLES:BOOL=OFF \
|
|
-DIFCXML_SUPPORT:BOOL=OFF \
|
|
-DBUILD_CONVERT:BOOL=ON \
|
|
-DBUILD_IFCPYTHON:BOOL=ON \
|
|
-DBUILD_IFCGEOM:BOOL=ON \
|
|
-DBUILD_GEOMSERVER:BOOL=OFF \
|
|
-DBOOST_USE_STATIC_LIBS:BOOL=OFF \
|
|
./cmake
|
|
|
|
ninja
|
|
|
|
ninja install
|