Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrivenaes committed Sep 6, 2024
1 parent f430482 commit 12059a1
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,29 @@ on:

jobs:
build:
if: false # TMP! This condition will always evaluate to false
name: Python ${{ matrix.python[0] }} on ${{ matrix.os_arch[0] }}-${{ matrix.os_arch[1] }}
runs-on: ${{ matrix.os_arch[0] }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
python:
- ['3.8', cp38]
- ['3.9', cp39]
- ['3.10', cp310]
- ['3.11', cp311]
- ['3.12', cp312]
os_arch:
python:
- ["3.8", cp38]
- ["3.9", cp39]
- ["3.10", cp310]
- ["3.11", cp311]
- ["3.12", cp312]
os_arch:
- [ubuntu-latest, manylinux_x86_64]
- [windows-latest, win_amd64]
- [macos-13, macosx_x86_64] # macos-13 is the last x86-64 runner
- [macos-latest, macosx_arm64] # macos-latest is always arm64 going forward
- [macos-13, macosx_x86_64] # macos-13 is the last x86-64 runner
- [macos-latest, macosx_arm64] # macos-latest is always arm64 going forward
exclude:
- os_arch: [macos-latest, macosx_arm64]
python: ['3.8', cp38]
python: ["3.8", cp38]
- os_arch: [macos-latest, macosx_arm64]
python: ['3.9', cp39]
python: ["3.9", cp39]
env:
CIBW_BUILD: ${{ matrix.python[1] }}-${{ matrix.os_arch[1] }}

Expand All @@ -38,7 +39,7 @@ jobs:
with:
fetch-depth: 0

- name: Set up Python
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python[0] }}
Expand All @@ -63,6 +64,8 @@ jobs:
path: wheelhouse/*.whl

publish:
if: false # TMP! This condition will always evaluate to false

needs: [build]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
Expand All @@ -73,14 +76,14 @@ jobs:
id-token: write

steps:
- uses: actions/download-artifact@v4
with:
pattern: cibw-*
path: wheelhouse
merge-multiple: true
- uses: actions/download-artifact@v4
with:
pattern: cibw-*
path: wheelhouse
merge-multiple: true

- uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
packages-dir: wheelhouse
verbose: true
- uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
packages-dir: wheelhouse
verbose: true

0 comments on commit 12059a1

Please sign in to comment.