Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hczhai committed Sep 14, 2023
1 parent 8583582 commit 1a53f47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/actions/build-wheel/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,16 @@ elif [ "${PYTHON_VERSION}" = "3.9" ]; then
PY_VER=cp39-cp39
elif [ "${PYTHON_VERSION}" = "3.10" ]; then
PY_VER=cp310-cp310
elif [ "${PYTHON_VERSION}" = "3.11" ]; then
PY_VER=cp311-cp311
elif [ "${PYTHON_VERSION}" = "3.12" ]; then
PY_VER=cp312-cp312
fi

PY_EXE=/opt/python/"${PY_VER}"/bin/python3
sed -i "/DPYTHON_EXECUTABLE/a \ '-DPYTHON_EXECUTABLE=${PY_EXE}'," setup.py

ls -l /opt/python
/opt/python/"${PY_VER}"/bin/pip install --upgrade --no-cache-dir pip
/opt/python/"${PY_VER}"/bin/pip install --no-cache-dir mkl==2021.4 mkl-include intel-openmp 'numpy<1.23.0' psutil 'cmake>=3.19' pybind11==2.10.1

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, macos-11 ]
python: [ '3.7', '3.8', '3.9', '3.10' ]
manylinux: [ 2010 ]
python: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
manylinux: [ 2014 ]
plat: [ x86_64, arm64 ]
parallel: [ serial ]
exclude:
Expand Down Expand Up @@ -122,6 +122,7 @@ jobs:
gsed -i "/DUSE_MKL/c \ '-DUSE_MKL=OFF'," setup.py
git clone https://github.com/Homebrew/brew arm-brew
cd arm-brew && git checkout 3.6.16 && cd ..
./arm-brew/bin/brew update
OMPGZ=$(./arm-brew/bin/brew fetch --force --bottle-tag=arm64_big_sur libomp | grep "Downloaded to" | awk '{print $3}')
./arm-brew/bin/brew install ${OMPGZ}
export OMPROOT=$(./arm-brew/bin/brew --prefix libomp)
Expand Down

0 comments on commit 1a53f47

Please sign in to comment.