Skip to content

Fix macOS workflows#300

Merged
marvinfriede merged 1 commit intomainfrom
fix-ga
Jul 6, 2025
Merged

Fix macOS workflows#300
marvinfriede merged 1 commit intomainfrom
fix-ga

Conversation

@marvinfriede
Copy link
Copy Markdown
Member

Pins GCC 14 to avoid reported compilation errors with GCC 15. See grimme-lab/mctc-lib#83.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR pins GCC 14 on macOS runners to avoid compilation errors introduced with GCC 15 and updates the workflows accordingly.

  • Bump cibuildwheel version and refine macOS build steps to ensure only GCC 14 and matching OpenBLAS are present
  • Add cleanup of conflicting libraries, adjust environment variables, and introduce a debug delocate command
  • Update Fortran build workflow to use brew --prefix for creating symlinks and setting flags

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/wheel.yml Pin cibuildwheel, install GCC 14 & OpenBLAS 0.3.23, remove conflicting libs, update LDFLAGS/CPPFLAGS, add repair command
.github/workflows/fortran-build.yml Use brew --prefix for symlinks to gcc/gfortran/g++, and standardize env var paths
Comments suppressed due to low confidence (2)

.github/workflows/wheel.yml:175

  • Hardcoded /usr/local/lib path may not match Homebrew's prefix on Apple Silicon or other runner configurations. Consider using $(brew --prefix gcc@14)/lib or $(brew --prefix)/lib for portability.
            rm -f /usr/local/lib/libgfortran*.dylib

.github/workflows/wheel.yml:181

  • After installing the versioned formula [email protected], referencing the unversioned brew --prefix openblas may not resolve correctly. Use brew --prefix [email protected] to match the installed formula.
            PKG_CONFIG_PATH="$(brew --prefix openblas)/lib/pkgconfig"

@marvinfriede marvinfriede merged commit c9bbac8 into main Jul 6, 2025
94 of 95 checks passed
@marvinfriede marvinfriede deleted the fix-ga branch July 6, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants