Skip to content

Commit

Permalink
Update build_and_publish_to_pypi.yml (#187)
Browse files Browse the repository at this point in the history
- minimize the diff between test and non test version.
carlkidcrypto authored Sep 16, 2024
1 parent 1bf4c23 commit d91226f
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build_and_publish_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -13,21 +13,23 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, macos-13, macos-14]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5

- name: Install cibuildwheel
run: |
python -m pip install --upgrade pip
pip install cibuildwheel
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
- name: Build wheels using cibuildwheel
uses: carlkidcrypto/os-specific-runner@v2.1.0
with:
linux: python -m cibuildwheel --output-dir wheelhouse --platform linux;

macos: python -m cibuildwheel --output-dir wheelhouse --platform macos;

- uses: actions/upload-artifact@v4
with:
@@ -36,8 +38,8 @@ jobs:

build-n-publish-pypi:
name: Build and Publish To PyPi
needs: build_wheels
runs-on: ubuntu-latest
needs: build_wheels

steps:
- uses: actions/checkout@v4

0 comments on commit d91226f

Please sign in to comment.