Skip to content

Commit 8c68566

Browse files
committed
install gcc for macos using homebrew
1 parent 70f2ea0 commit 8c68566

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/python-publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ jobs:
2929
python-version: ${{ matrix.python-version }}
3030
- name: Display Python version
3131
run: python -c "import sys; print(sys.version)"
32+
- name: Install GCC for MacOS using Homebrew
33+
run: python -c "import os, platform; os.system('brew install gcc | brew link gcc') if 'darwin' in platform.platform().lower() else print(platform.platform())"
3234
- name: Install dependencies
3335
run: |
3436
python -m pip install --upgrade pip
3537
python -m pip install --only-binary=numpy,scipy numpy scipy wheel
3638
- name: Build package
3739
run: |
38-
python setup.py sdist
39-
python setup.py bdist_wheel
40+
python setup.py sdist bdist_wheel
4041
rm dist/*.egg
4142
- name: Publish package
4243
uses: pypa/gh-action-pypi-publish@master

0 commit comments

Comments
 (0)