-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake maintenance #1847
Merged
Merged
CMake maintenance #1847
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
00048e7
optionally provide GIT_DESCRIPTION when building from a tarfile
mahrud dbf7fcc
fix a latex formula
mahrud 39ccaf2
fix #1787
mahrud 7aace1c
adjust CMake to find a few libraries through brew
mahrud 12e0af7
change emacs site-lisp path to lowercase
mahrud a3cec3f
update flint submodule
mahrud edabb1e
handle building from a tarfile gracefully
mahrud ba2c0ba
fix Macaulay2/homebrew-tap#61
mahrud 1e32fb1
run tests on cmake-ubuntu-latest-clang10
mahrud c5d8884
use shortcut for installing brew dependencies of M2
mahrud 50ea574
detect brew prefix directly
mahrud 81bde50
update CMake documentation
mahrud 84af3c9
temporarily disable tests, see #1849
mahrud 77c5434
fix Makefiles in BUILD/docker
mahrud 4fed790
fix #1853
mahrud 16320bd
don't use capture for check when arguments don't match
mahrud File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -77,11 +77,11 @@ jobs: | |
run: | | ||
brew config | ||
brew tap macaulay2/tap | ||
brew install autoconf automake bison ccache cmake gnu-tar libtool make ninja pkg-config yasm | ||
brew install bdw-gc boost eigen gdbm readline libatomic_ops libxml2 libomp tbb | ||
brew install gmp mpfr ntl [email protected] [email protected] mpsolve glpk | ||
brew install frobby memtailor mathic mathicgb givaro fflas-ffpack | ||
brew install 4ti2 cohomcalg csdp gfan lrs nauty normaliz topcom | ||
brew install autoconf automake bison ccache cmake ctags gnu-tar libtool make ninja pkg-config yasm | ||
brew install --with-tbb --only-dependencies macaulay2/tap/M2 | ||
HOMEBREW_DEPS=`brew deps --1 --include-optional macaulay2/tap/M2 | tr '\n' ';'` | ||
HOMEBREW_PREFIX=`brew --prefix` | ||
echo "OPT_PREFIX=$HOMEBREW_PREFIX/opt/${HOMEBREW_DEPS//;/;$HOMEBREW_PREFIX/opt/}" >> $GITHUB_ENV | ||
|
||
# ---------------------- | ||
# Install missing tools and libraries for Linux | ||
|
@@ -138,11 +138,9 @@ jobs: | |
- name: Configure Macaulay2 using CMake | ||
if: matrix.build-system == 'cmake' | ||
run: | | ||
deps=`brew deps --1 --include-optional macaulay2/tap/M2 | tr '\n' ';'` | ||
paths=$HOMEBREW_PREFIX/opt/${deps//;/;$HOMEBREW_PREFIX/opt/} | ||
cmake -S../.. -B. -GNinja \ | ||
-DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_NATIVE=OFF \ | ||
-DCMAKE_PREFIX_PATH=$paths \ | ||
-DCMAKE_PREFIX_PATH=$OPT_PREFIX \ | ||
-DCMAKE_INSTALL_PREFIX=/usr | ||
|
||
- name: Build libraries using Ninja | ||
|
@@ -183,15 +181,17 @@ jobs: | |
# ---------------------- | ||
|
||
- name: Run Tests using CTest | ||
if: matrix.build-system == 'cmake' && matrix.os == 'ubuntu-latest' && matrix.compiler == 'default' | ||
if: matrix.build-system == 'cmake' && matrix.os == 'ubuntu-latest' && matrix.compiler == 'clang10' | ||
run: | | ||
./M2 -q --check 1 -e 'exit 0' | ||
# TODO: uncomment these when https://github.com/Macaulay2/M2/issues/1849 is fixed | ||
#./M2 -q --check 2 -e 'exit 0' | ||
#./M2 -q --check 3 -e 'exit 0' | ||
cmake --build . --target M2-tests | ||
cmake --build . --target M2-unit-tests | ||
ctest -j1 --output-on-failure -R "unit-tests" | ||
# TODO: remove the excluded normal tests | ||
ctest -j4 --output-on-failure -R "normal/" -E "command|program|threads" | ||
ctest -j4 --output-on-failure -R "ComputationsBook" | ||
# TODO: add engine tests | ||
# TODO: add Macaulay2/tests/engine when https://github.com/Macaulay2/M2/issues/1213 is fixed | ||
|
||
- name: Run Tests using Autotools | ||
if: matrix.build-system == 'autotools' && matrix.os == 'ubuntu-latest' && matrix.compiler == 'default' | ||
|
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd tried to do this in 7a55f01, but I guess it wasn't working properly? We probably should revert that commit, too.