From 961c2b71341ea963c67cc3c590befa8cb36eb7cb Mon Sep 17 00:00:00 2001 From: Andrew Cassidy Date: Tue, 31 May 2022 01:16:18 -0700 Subject: [PATCH] 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. --- .github/workflows/python-package.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 9d5930b..10ea312 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -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