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
bf21977
commit 27a93cb
Showing
1 changed file
with
21 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,21 @@ | ||
name: macOS build | ||
on: push | ||
|
||
jobs: | ||
macos-build: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
brew install autoconf automake make texinfo libomp gcc | ||
brew install --only-dependencies Macaulay2/tap/M2 | ||
- name: Build Macaulay2 | ||
run: | | ||
git clone https://github.com/Macaulay2/M2 | ||
cd M2/M2/BUILD/build | ||
../../autogen.sh | ||
../../configure --enable-download \ | ||
LDFLAGS="-L$(brew --prefix libomp)/lib" \ | ||
CPPFLAGS="-I$(brew --prefix libomp)/include" \ | ||
F77="gfortran-$(gcc -dumpversion)" | ||
gmake |