Skip to content

Commit

Permalink
try macOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
d-torrance committed Nov 11, 2024
1 parent f76c5a9 commit 7553fad
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/macos-build.yml
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

0 comments on commit 7553fad

Please sign in to comment.