Skip to content

Commit

Permalink
fix brew build
Browse files Browse the repository at this point in the history
  • Loading branch information
hczhai committed Oct 14, 2023
1 parent 032862d commit 357c5b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

strategy:
matrix:
os: [ ubuntu-latest, macos-11 ]
os: [ ubuntu-latest, macos-12 ]
python: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
manylinux: [ 2014 ]
plat: [ x86_64, arm64 ]
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
py.test pyblock3/algorithms --ignore=pyblock3/algorithms/tests/test_soc.py
- name: build wheels (macos-x86_64)
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'macos-11' && matrix.plat == 'x86_64'
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'macos-12' && matrix.plat == 'x86_64'
env:
TAG_STRING: ${{ github.event.ref }}
MACOSX_DEPLOYMENT_TARGET: '10.9'
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
delocate-wheel -k dist/*.whl
- name: build wheels (macos-arm64)
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'macos-11' && matrix.plat == 'arm64'
if: startsWith(github.ref, 'refs/tags/') && matrix.os == 'macos-12' && matrix.plat == 'arm64'
env:
TAG_STRING: ${{ github.event.ref }}
MACOSX_DEPLOYMENT_TARGET: '11.0'
Expand All @@ -123,7 +123,7 @@ jobs:
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}')
OMPGZ=$(./arm-brew/bin/brew fetch --force --bottle-tag=arm64_monterey libomp | grep "Downloaded to" | awk '{print $3}')
./arm-brew/bin/brew install ${OMPGZ}
export OMPROOT=$(./arm-brew/bin/brew --prefix libomp)
echo ${OMPROOT}
Expand Down

0 comments on commit 357c5b8

Please sign in to comment.