Skip to content

Commit

Permalink
See if it works now
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran committed Nov 7, 2024
1 parent f41f5fe commit 06dad78
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
strategy:
matrix:
os: [macos-14]
python-version: ['3.10', '3.11', '3.12'] # change later
python-version: ['3.10']

steps:
- name: Check out code
Expand All @@ -53,22 +53,22 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

#- name: Install OSX System Dependencies
# run: |
# brew install --cask xquartz
# brew install flex bison mpich
# brew unlink mpich && brew install openmpi
# cmake --version
# # Uninstall libomp for compatibility with issue #817
# brew uninstall --ignore-dependencies libomp || echo "libomp doesn't exist"
# brew install cmake
# echo "$(brew --prefix)/opt/cmake/bin" >> $GITHUB_PATH
# echo "$(brew --prefix)/opt/flex/bin:$(brew --prefix)/opt/bison/bin" >> $GITHUB_PATH

#- name: Install readline
# run: |
# sudo mkdir -p /opt/nrnwheel/$(uname -m)
# sudo bash packaging/python/build_static_readline_osx.bash
- name: Install OSX System Dependencies
run: |
brew install --cask xquartz
brew install flex bison mpich
brew unlink mpich && brew install openmpi
cmake --version
# Uninstall libomp for compatibility with issue #817
brew uninstall --ignore-dependencies libomp || echo "libomp doesn't exist"
brew install cmake
echo "$(brew --prefix)/opt/cmake/bin" >> $GITHUB_PATH
echo "$(brew --prefix)/opt/flex/bin:$(brew --prefix)/opt/bison/bin" >> $GITHUB_PATH
- name: Install readline
run: |
sudo mkdir -p /opt/nrnwheel/$(uname -m)
sudo bash packaging/python/build_static_readline_osx.bash
- name: Set env based in input
if: github.event_name == 'schedule' && startsWith(github.ref, 'refs/master')
Expand All @@ -85,20 +85,20 @@ jobs:
echo "NEURON_NIGHTLY_TAG=''" >> $GITHUB_ENV
echo SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.rel_version }} >> $GITHUB_ENV
#- name: Build MacOS Wheel
# run: |
# packaging/python/build_wheels.bash osx ${{ matrix.python-version }} coreneuron
- name: Build MacOS Wheel
run: |
packaging/python/build_wheels.bash osx ${{ matrix.python-version }} coreneuron
#- name: Test wheel
# run: |
# minor_version="$(python -c 'import sys;print(sys.version_info.minor)')"
# packaging/python/test_wheels.sh $(which python) wheelhouse/*cp3${minor_version}*.whl
- name: Test wheel
run: |
minor_version="$(python -c 'import sys;print(sys.version_info.minor)')"
packaging/python/test_wheels.sh $(which python) wheelhouse/*cp3${minor_version}*.whl
#- name: Upload wheel files
# uses: actions/upload-artifact@v3
# with:
# name: macos-wheels-${{ matrix.python-version }}
# path: wheelhouse/*.whl
- name: Upload wheel files
uses: actions/upload-artifact@v3
with:
name: macos-wheels-${{ matrix.python-version }}
path: wheelhouse/*.whl


# publish-to-pypi:
Expand Down

0 comments on commit 06dad78

Please sign in to comment.