Skip to content
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
25 changes: 25 additions & 0 deletions .github/scripts/install_osx_dependencies.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash -e

# This script is used to build the system dependencies for MacOS
# It is called by test workflow in .github/workflows/
# To build necessary system dependencies for MacOS, run:

# check if os is MacOS using uname
if [ "$(uname)" = "Darwin" ]; then
# install necessary dependencies
echo "installing necessary dependencies..."
brew install libomp

LIBOMP_PREFIX="$(brew --prefix libomp)"

echo "Verifying libomp installation..."
ls "$LIBOMP_PREFIX/lib/libomp.dylib"

{
echo "DYLD_LIBRARY_PATH=$LIBOMP_PREFIX/lib:\$DYLD_LIBRARY_PATH"
echo "LDFLAGS=-L$LIBOMP_PREFIX/lib"
echo "CPPFLAGS=-I$LIBOMP_PREFIX/include"
} >> "$GITHUB_ENV"
else
echo "This script is intended to run on macOS (Darwin)."
fi
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ jobs:
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install OSX packages
run: ./.github/scripts/install_osx_dependencies.sh

- name: Install skpro and dependencies
run: |
python -m pip install .[all_extras,dev] --no-cache-dir
Expand Down
Loading