Skip to content

Commit

Permalink
skip non-native builds when not publishing a release
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Oct 5, 2024
1 parent 6d258c0 commit f10ad05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ jobs:
submodules: true
fetch-depth: 0

- name: Build aarch64?
- name: Build aarch64 and armv7l?
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
run: echo "BUILD_ARCH=aarch64 ${{ env.BUILD_ARCH }}" >> $GITHUB_ENV
run: echo "BUILD_ARCH=aarch64 armv7l ${{ env.BUILD_ARCH }}" >> $GITHUB_ENV

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -111,7 +111,7 @@ jobs:
- name: Build binary wheels with cibuildwheels
uses: pypa/cibuildwheel@v2.21.2
env:
CIBW_ARCHS_LINUX: aarch64 native armv7l
CIBW_ARCHS_LINUX: ${{ env.BUILD_ARCH }}
CIBW_SKIP: cp36* pp* *ppc64le *s390x

- name: Move cross-compiled wheels to dist folder
Expand Down

0 comments on commit f10ad05

Please sign in to comment.