-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix Doxygen errors, turn on Doxygen translation and up version of swig to 4.0.1 * Restore std_map.i * Update appveyor.yml Try swig 4.0.0 if available on chocolatey * Move inner typedef of C3DFileAdapter::Tables outside class, and fix comments * Remove template StdMapStringTimeSeriesTableVec3 as unusable for now and swig-out call-site * Update continuous_integration.yml use 4.0.2 for ci * Add function templates to Model class to maintain backwards compatibility and account for changes in swig handling of function templates scoping * Include doxygen in python module, tests run with python 3.9 but with some failures * Fix interface entry for shared_ptr of TimeSeriesTableVec3, restore internal typedef * Update CMakeLists.txt Use 4.0.0 so as not to force bleeding edge swig * Update CMakeLists.txt Remove stale comment referring to swig 3.0.9 * Update continuous_integration.yml Update SWIG acquisition script * Update continuous_integration.yml workaround caching swig * Update continuous_integration.yml try get source for swig on linux * Update continuous_integration.yml swig location on linux * Update continuous_integration.yml SWIG_DIR on linux * Update continuous_integration.yml swig4.0 on linux * Force python 3.7 in ci on windows, osx * Update continuous_integration.yml fix syntax
- Loading branch information
Showing
14 changed files
with
107 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,11 +31,16 @@ jobs: | |
echo "$env:GITHUB_WORKSPACE\\doxygen" >> $GITHUB_PATH | ||
- name: Install Python packages | ||
# Need numpy to use SWIG numpy typemaps. | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.7' | ||
|
||
- name: Install numpy | ||
#Need numpy to use SWIG numpy typemaps. | ||
run: python -m pip install numpy | ||
|
||
- name: Install SWIG | ||
run: choco install swig --version 3.0.12 --yes --limit-output | ||
run: choco install swig --version 4.0.0 --yes --limit-output | ||
|
||
- name: Cache dependencies | ||
id: cache-dependencies | ||
|
@@ -157,7 +162,7 @@ jobs: | |
- name: Install Homebrew packages | ||
# Save the gfortran version to a file so we can use it in the cache key. | ||
run: | | ||
brew install cmake pkgconfig autoconf libtool automake wget pcre doxygen | ||
brew install cmake pkgconfig autoconf libtool automake wget pcre doxygen [email protected] | ||
brew reinstall gcc | ||
pip3 install numpy | ||
gfortran -v | ||
|
@@ -172,11 +177,11 @@ jobs: | |
key: ${{ runner.os }}-swig | ||
|
||
- name: Install SWIG | ||
if: steps.cache-swig.outputs.cache-hit != 'true' | ||
# if: steps.cache-swig.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir ~/swig-source && cd ~/swig-source | ||
wget https://github.com/swig/swig/archive/rel-3.0.12.tar.gz | ||
tar xzf rel-3.0.12.tar.gz && cd swig-rel-3.0.12 | ||
wget https://github.com/swig/swig/archive/refs/tags/rel-4.0.2.tar.gz | ||
tar xzf rel-4.0.2.tar.gz && cd swig-rel-4.0.2 | ||
sh autogen.sh && ./configure --prefix=$HOME/swig --disable-ccache | ||
make && make -j4 install | ||
|
@@ -300,8 +305,16 @@ jobs: | |
- uses: actions/checkout@v1 | ||
|
||
- name: Install packages | ||
run: sudo apt-get update && sudo apt-get install --yes build-essential libtool autoconf pkg-config gfortran libopenblas-dev liblapack-dev freeglut3-dev libxi-dev libxmu-dev doxygen python3 python3-dev python3-numpy python3-setuptools swig | ||
run: sudo apt-get update && sudo apt-get install --yes build-essential libtool autoconf pkg-config gfortran libopenblas-dev liblapack-dev freeglut3-dev libxi-dev libxmu-dev doxygen python3 python3-dev python3-numpy python3-setuptools | ||
|
||
- name: Install SWIG | ||
# if: steps.cache-swig.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir ~/swig-source && cd ~/swig-source | ||
wget https://github.com/swig/swig/archive/refs/tags/rel-4.0.2.tar.gz | ||
tar xzf rel-4.0.2.tar.gz && cd swig-rel-4.0.2 | ||
sh autogen.sh && ./configure --prefix=$HOME/swig --disable-ccache | ||
make && make -j4 install | ||
- name: Cache dependencies | ||
id: cache-dependencies | ||
uses: actions/cache@v1 | ||
|
@@ -333,6 +346,8 @@ jobs: | |
OSIM_CMAKE_ARGS+=(-DOPENSIM_DEPENDENCIES_DIR=~/opensim_dependencies_install) | ||
OSIM_CMAKE_ARGS+=(-DOPENSIM_C3D_PARSER=ezc3d) | ||
OSIM_CMAKE_ARGS+=(-DBUILD_PYTHON_WRAPPING=on -DBUILD_JAVA_WRAPPING=on) | ||
OSIM_CMAKE_ARGS+=(-DSWIG_DIR=~/swig/share/swig) | ||
OSIM_CMAKE_ARGS+=(-DSWIG_EXECUTABLE=~/swig/bin/swig) | ||
OSIM_CMAKE_ARGS+=(-DOPENSIM_INSTALL_UNIX_FHS=OFF) | ||
OSIM_CMAKE_ARGS+=(-DOPENSIM_DOXYGEN_USE_MATHJAX=off) | ||
# TODO: Update to simbody.github.io/latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.