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 bf21977 commit 27a93cb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/macos-build.yml
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

0 comments on commit 27a93cb

Please sign in to comment.