Xiangyu-Hu / SPHinXsys

SPHinXsys provides C++ APIs for engineering simulation and optimization. It aims at complex systems driven by fluid, structure, multi-body dynamics and beyond. The multi-physics library is based on a unique and unified computational framework by which strong coupling has been achieved for all involved physics.
https://www.sphinxsys.org/
Apache License 2.0
259 stars 199 forks source link

[CI] Build shared libraries #473

Open FabienPean-Virtonomy opened 6 months ago

FabienPean-Virtonomy commented 6 months ago

Generate shared libraries instead of static one. The objective is to reduce disk size consumed on the GitHub runners by the CI. Currently as static library, the binary code is duplicated many times across all example binaries. Building as shared library should solve that.

Xiangyu-Hu commented 6 months ago

The same problem with fontconfig:x64-osx.

FabienPean-Virtonomy commented 6 months ago

Does it reduce the memory consumption ?

DrChiZhang commented 5 months ago

Would you please give brief introduction of this PR?

FabienPean-Virtonomy commented 5 months ago

It is as per request from @Xiangyu-Hu who needs to have a smaller footprint on the CI disk consumption. A description has been briefly added. I leave it the rest to him.

Xiangyu-Hu commented 5 months ago

Something wrong with McOS ?

FabienPean-Virtonomy commented 5 months ago

The MacOS GitHub runner image is different between the build job and the test job. 20230921.1 20231115.2

The more recent version has Python 3.12, while the older is on 3.11, hence the break. I don't know why there is such discrepancy between runners.