SPHinXsys icon indicating copy to clipboard operation
SPHinXsys copied to clipboard

[CI] Build shared libraries

Open FabienPean-Virtonomy opened this issue 1 year ago • 6 comments

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.

FabienPean-Virtonomy avatar Nov 15 '23 13:11 FabienPean-Virtonomy

The same problem with fontconfig:x64-osx.

Xiangyu-Hu avatar Nov 15 '23 15:11 Xiangyu-Hu

Does it reduce the memory consumption ?

FabienPean-Virtonomy avatar Nov 17 '23 08:11 FabienPean-Virtonomy

Would you please give brief introduction of this PR?

DrChiZhang avatar Nov 24 '23 10:11 DrChiZhang

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.

FabienPean-Virtonomy avatar Nov 28 '23 10:11 FabienPean-Virtonomy

Something wrong with McOS ?

Xiangyu-Hu avatar Nov 30 '23 15:11 Xiangyu-Hu

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.

FabienPean-Virtonomy avatar Dec 01 '23 08:12 FabienPean-Virtonomy