mimesis-inria / caribou

Multi-physics computation library
GNU Lesser General Public License v3.0
29 stars 17 forks source link

[CI] Publish linux artifacts #63

Closed jnbrunet closed 2 years ago

jnbrunet commented 3 years ago

This PR will automatically publish the nightly built binaries to

https://caribou.jnbrunet.com/artifacts/

For now, only Linux binaries are available. Hopefully, Windows and MacOS will follow at some point.

Sofa version Linux MacOS Windows
v20.06 SofaCaribou_latest.tar.gz N/A N/A
v20.12 SofaCaribou_latest.tar.gz N/A N/A
v21.06 SofaCaribou_latest.tar.gz N/A N/A
master SofaCaribou_latest.tar.gz N/A N/A

To install them, simply expand the archive content directly into the plugins directory of your SOFA installation. For example, the following commands will install SOFA v21.06 and install Caribou plugin and its python bindings afterwards:

$ # Set the environment variable that will contain the path to SOFA's installation
$ export SOFA_ROOT=$PWD/SOFA_V21.06

$ # Install SOFA V21.06 into SOFA_ROOT 
$ # (SKIP THIS IF YOU ALREADY HAVE INSTALLED SOFA)
$ curl --progress-bar --output sofa.zip -L "https://github.com/sofa-framework/sofa/releases/download/v21.06.00/SOFA_v21.06.00_Linux.zip"  && unzip -qq sofa.zip -d temp && mv temp/`ls temp` $SOFA_ROOT && rm -rf temp && rm -rf sofa.zip

$ # Install Caribou into the SOFA_ROOT/plugins directory
$ curl --progress-bar --output SofaCaribou.tar.gz -L "https://caribou.jnbrunet.com/artifacts/linux/v21.06/SofaCaribou_latest.tar.gz"
$ tar zxf SofaCaribou.tar.gz --directory $SOFA_ROOT/plugins

$ # Tell python where it should find SP3 and Caribou
$ export PYTHONPATH="$SOFA_ROOT/plugins/SofaPython3/lib/python3/site-packages:$SOFA_ROOT/plugins/SofaCaribou/lib/python3/site-packages"

$ # Test the installation
$ python3.7 -c "import SofaRuntime;print(SofaRuntime);import SofaCaribou;print(SofaCaribou)"

CC @hugtalbot @fredroy