-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #326 from saraedum/macos
Run tests on macOS in CI
- Loading branch information
Showing
27 changed files
with
180 additions
and
71 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 |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
|
||
jobs: | ||
asv: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,5 +41,3 @@ | |
"results_dir": ".asv/results", | ||
"html_dir": ".asv/html" | ||
} | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
**Fixed:** | ||
|
||
* Fixed tests on macOS. All tests are now automatically run for macOS 11 on GitHub's CI. |
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 |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
name: libflatsurf-build | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- automake | ||
- benchmark | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
name: pyflatsurf-build | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- automake | ||
- cppyy | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/sh | ||
|
||
# Run Python 3 with environment variables set so that local headers and | ||
# libraries in this repository are used when running tests. | ||
|
||
# Usually, one would do this setup as part of test-env.sh, i.e., | ||
# AM_TESTS_ENVIRONMENT. However, macOS drops DYLD_LIBRARY_PATH whenever a | ||
# shebang is followed, so we actually need to execute the Python binary | ||
# directly and pass a script to it as a parameter to keep DYLD_LIBRARY_PATH | ||
# alive. | ||
|
||
# Disable warnings on macOS with FLINT 2.8.4, see https://github.com/conda-forge/libflint-feedstock/issues/26 | ||
export EXTRA_CLING_ARGS="-Wno-macro-redefined $EXTRA_CLING_ARGS" | ||
|
||
# Resolve #include <flatsurf/*.hpp> relative to libflatsurf in the source tree and | ||
# resolve #include "local.h" relative to libflatsurf/flatsurf in the build tree. | ||
export EXTRA_CLING_ARGS="-I@abs_srcdir@/../../libflatsurf -I@abs_builddir@/../../libflatsurf/flatsurf $EXTRA_CLING_ARGS" | ||
|
||
# Load libflatsurf.so from our build tree. | ||
export LD_LIBRARY_PATH="@abs_builddir@/../../libflatsurf/src/.libs/:$LD_LIBRARY_PATH" | ||
|
||
# Load libflatsurf.dylib from our build tree. | ||
export DYLD_LIBRARY_PATH="@abs_builddir@/../../libflatsurf/src/.libs/:$DYLD_LIBRARY_PATH" | ||
|
||
# Load pyflatsurf from our source tree. | ||
export PYTHONPATH="@abs_srcdir@/../src/:$PYTHONPATH:@pythondir@" | ||
|
||
# Support libasan loading when our library has been built with -fsanitize=address. | ||
if [ ! -z "$FLATSURF_LD_PRELOAD" ]; then | ||
export LD_PRELOAD="$FLATSURF_LD_PRELOAD:$LD_PRELOAD" | ||
fi | ||
|
||
# Support libasan loading on macOS when our library has been built with -fsanitize=address. | ||
if [ ! -z "$FLATSURF_DYLD_INSERT_LIBRARIES" ]; then | ||
if [ -z "$DYLD_INSERT_LIBRARIES" ]; then | ||
export DYLD_INSERT_LIBRARIES="$FLATSURF_DYLD_INSERT_LIBRARIES" | ||
else | ||
export DYLD_INSERT_LIBRARIES="$FLATSURF_DYLD_INSERT_LIBRARIES:$DYLD_INSERT_LIBRARIES" | ||
fi | ||
fi | ||
|
||
exec python3 $@ |
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.