Skip to content
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

MNT: Add support for osx-64 builds #2

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .azure-pipelines/azure-pipelines-osx.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .ci_support/osx_64_.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.13'
MACOSX_SDK_VERSION:
- '10.13'
c_stdlib:
- macosx_deployment_target
c_stdlib_version:
- '10.13'
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
fortran_compiler:
- gfortran
fortran_compiler_version:
- '13'
macos_machine:
- x86_64-apple-darwin13.4.0
target_platform:
- osx-64
7 changes: 7 additions & 0 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ source:
- allow-longer-paths-for-ffopen.patch

build:
number: 1
number: 2

outputs:
- name: {{ name }}-static

build:
skip: true # [win or (osx and x86)]
skip: true # [win]
script:
# FIXME: Patch out custom paths
# Note: Need the space at the end of '$PREFIX/share/ff/ ' so that
Expand All @@ -32,6 +32,10 @@ outputs:
# This is a bug and should get fixed by using better logic for fullname.
- sed -i "s|/user/gj/lib/|$PREFIX/share/ff/ |g" src/ff/ffinit.f
matthewfeickert marked this conversation as resolved.
Show resolved Hide resolved
- sed -i "s|/usr/local/ff/|$PREFIX/share/ff/ |g" src/ff/ffinit.f
matthewfeickert marked this conversation as resolved.
Show resolved Hide resolved
- cat src/ff/ffinit.f

# DEBUG
- export FFLAGS="-isystem $PREFIX/include" # [osx and x86]

- cd src/ff
- make install FC=$FC FFLAGS="$FFLAGS -std=legacy -ffixed-line-length-none" DEST=$PREFIX/lib --jobs="${CPU_COUNT}"
Expand Down