Skip to content

Commit 07024b1

Browse files
committed
build mac package on osx 12
1 parent ba1266d commit 07024b1

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build-package.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,21 @@ jobs:
55
build:
66
strategy:
77
matrix:
8-
os: ['ubuntu-latest', 'macos-11']
8+
os: ['ubuntu-latest', 'macos-12']
99
runs-on: ${{ matrix.os }}
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v4
1313

14+
- name: Install python 2.7 on MacOS
15+
if: runner.os == 'macOS'
16+
run: |
17+
brew install pyenv
18+
echo "$(pyenv root)/shims" >> $GITHUB_PATH
19+
echo "$(pyenv root)/bin" >> $GITHUB_PATH
20+
pyenv install 2.7.18
21+
pyenv global system 2.7.18
22+
1423
- name: Build wheels
1524
uses: pypa/cibuildwheel@v2.19.2
1625
env:

0 commit comments

Comments
 (0)