forked from Macaulay2/M2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f76c5a9
commit 7553fad
Showing
1 changed file
with
38 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: macOS build | ||
on: push | ||
|
||
jobs: | ||
macos-build: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
brew install autoconf automake make texinfo libomp bdw-gc cddlib \ | ||
googletest | ||
brew install --only-dependencies Macaulay2/tap/M2 | ||
brew install Macaulay2/tap/memtailor Macaulay2/tap/mathic \ | ||
Macaulay2/tap/mathicgb | ||
ls -R $(brew --prefix googletest) | ||
- name: Build Macaulay2 | ||
run: | | ||
git clone https://github.com/Macaulay2/M2 | ||
cd M2/M2/BUILD/build | ||
../../autogen.sh | ||
../../configure --enable-download --with-system-gc \ | ||
--with-system-memtailor --with-system-mathic \ | ||
--with-system-mathicgb \ | ||
--with-gtest-include-path="$(brew --prefix googletest)/include)" \ | ||
--with-gtest-source-path="$(brew --prefix googletest)/include/googletest/googletest" \ | ||
/opt/homebrew/opt/googletest/include/googletest/googletest | ||
LDFLAGS="-L$(brew --prefix)/lib \ | ||
-L$(brew --prefix libomp)/lib \ | ||
-L$(brew --prefix factory)/lib \ | ||
-L/Library/Frameworks/Python.framework/Versions/3.13/lib" \ | ||
CPPFLAGS="-I$(brew --prefix)/include \ | ||
-I$(brew --prefix libomp)/include \ | ||
-I$(brew --prefix factory)/include \ | ||
-I$(brew --prefix)/include/cddlib" \ | ||
F77="gfortran-14" \ | ||
PKG_CONFIG_PATH="$(brew --prefix factory)/lib/pkgconfig" | ||
cat config.log | ||
gmake |