Build on macOS 12

This should build on older versions, so long as you have llvm 13. But the homebrew version of llvm the macos 11 runner has only includes x86 dylibs which cant be linked against when building for arm.
feature/simd
Andrew Cassidy 2 years ago
parent 9388406769
commit 961c2b7134

@ -48,7 +48,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-11, windows-latest, ubuntu-latest ]
os: [ macos-12, windows-latest, ubuntu-latest ]
arch: [ [ 'x86', 'x86_64', 'AMD64', 'x86_64' ] ] #[suffix, mac, windows, linux] arch names
include:
- os: ubuntu-latest
@ -70,13 +70,6 @@ jobs:
wget https://pileof.rocks/openmp-13.0.0-darwin21-Release.tar.gz
sudo tar fvxz openmp-*.tar.gz -C /
- name: Select LLVM 13
if: runner.os == 'macOS'
run: |
echo "CC=$(brew --prefix llvm)/bin/clang" >> $GITHUB_ENV
echo "CXX=$(brew --prefix llvm)/bin/clang" >> $GITHUB_ENV
echo "LDFLAGS=-L$(brew --prefix)/opt/llvm/lib -Wl,-rpath,$(brew --prefix)/opt/llvm/lib" >> $GITHUB_ENV
- name: Install QEMU
# install QEMU if building for arm linux
uses: docker/setup-qemu-action@v2
@ -87,7 +80,7 @@ jobs:
- name: Build wheels
uses: pypa/cibuildwheel@2.5.0
env:
MACOSX_DEPLOYMENT_TARGET: "11"
MACOSX_DEPLOYMENT_TARGET: "10.9"
CIBW_ARCHS_LINUX: ${{ matrix.arch[3] }}
- name: Upload Wheels

Loading…
Cancel
Save