diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 79df898..8cfdb97 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -12,7 +12,6 @@ on: pull_request: branches: - main - workflow_dispatch: env: VERSION: ${{ github.ref_name }} @@ -59,6 +58,7 @@ jobs: build-wheels: name: Build wheels for ${{ matrix.os }} runs-on: ${{ matrix.runs-on }} + if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'pull_request' strategy: matrix: include: @@ -76,27 +76,13 @@ jobs: - os: macos-arm # macos-14+ (including latest) are ARM64 runners runs-on: macos-latest - - os: android-intel - runs-on: ubuntu-latest - platform: android - - os: android-arm - # GitHub Actions doesn’t currently support the Android emulator on any ARM - # runner. So we build on a non-ARM runner, which will skip the tests. - runs-on: ubuntu-latest - platform: android - archs: arm64_v8a - - os: ios - runs-on: macos-latest - platform: ios - - os: pyodide - runs-on: ubuntu-latest - platform: pyodide steps: - uses: actions/checkout@v4 - name: Build wheels uses: pypa/cibuildwheel@v3.2.1 env: + CIBW_SKIP: "cp38-* *_ppc64le *_s390x *_riscv64" CIBW_PLATFORM: ${{ matrix.platform || 'auto' }} CIBW_ARCHS: ${{ matrix.archs || 'auto' }} CIBW_ENVIRONMENT_PASS_LINUX: VERSION @@ -109,6 +95,7 @@ jobs: build-sdist: name: Build source distribution runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'pull_request' steps: - uses: actions/checkout@v5 diff --git a/setup.py b/setup.py index dd67510..c518b53 100755 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ from os.path import abspath, dirname, join # specify the version -version = 'v1.0.4' +version = 'v1.0.5' here = abspath(dirname(__file__))