Skip to content

Commit

Permalink
Update Build Wheels to only build once on RCs (#32009)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmccluskey authored Jul 29, 2024
1 parent 7930a1f commit ffae5b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ jobs:
arch: aarch64
steps:
- name: Download python source distribution from artifacts
if: ${{ needs.build_source.outputs.is_rc == 0 }}
# Pinned to v3 because of https://github.com/actions/download-artifact/issues/249
uses: actions/download-artifact@v3
with:
Expand All @@ -259,6 +260,7 @@ jobs:
# note: sync cibuildwheel version with gradle task sdks:python:bdistPy* steps
run: pip install cibuildwheel==2.17.0 setuptools
- name: Build wheel
if: ${{ needs.build_source.outputs.is_rc == 0 }}
working-directory: apache-beam-source
env:
CIBW_BUILD: ${{ matrix.os_python.python }}
Expand All @@ -271,13 +273,15 @@ jobs:
if: startsWith(matrix.os_python.os, 'macos')
run: brew install coreutils
- name: Add checksums
if: ${{ needs.build_source.outputs.is_rc == 0 }}
working-directory: apache-beam-source/wheelhouse/
run: |
for file in *.whl; do
sha512sum $file > ${file}.sha512
done
shell: bash
- name: Upload wheels as artifacts
if: ${{ needs.build_source.outputs.is_rc == 0 }}
# Pinned to v3 because of https://github.com/actions/download-artifact/issues/249
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit ffae5b5

Please sign in to comment.