Skip to content

Commit

Permalink
[CI] Reduce # of configurations for nightly releases on TestPyPI (#941)
Browse files Browse the repository at this point in the history
TestPyPI only provides 10GB of storage for a project, which with our
current configuration would be filled in about ~10 releases. After the
space is filled, older releases need to be manually deleted (until
better solution is found).
With a nightly schedule, reducing the number of configurations should
help alleviate the problem somewhat.
  • Loading branch information
dime10 authored Jul 17, 2024
1 parent acc19c5 commit d3b8cd4
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/build-nightly-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,27 @@ jobs:
git commit -m "[no ci] bump nightly version"
git push
# Only build the most popular configurations on a nightly schedule to save PyPI storage.

linux-x86:
name: Build on Linux x86-64
needs: [setup]
uses: ./.github/workflows/build-wheel-linux-x86_64.yaml

linux-aarch:
name: Build on Linux aarch64
needs: [setup]
uses: ./.github/workflows/build-wheel-linux-arm64.yaml
# linux-aarch:
# name: Build on Linux aarch64
# needs: [setup]
# uses: ./.github/workflows/build-wheel-linux-arm64.yaml

macos-arm:
name: Build on macOS arm64
needs: [setup]
uses: ./.github/workflows/build-wheel-macos-arm64.yaml

macos-x86:
name: Build on macOS x86-64
needs: [setup]
uses: ./.github/workflows/build-wheel-macos-x86_64.yaml
# macos-x86:
# name: Build on macOS x86-64
# needs: [setup]
# uses: ./.github/workflows/build-wheel-macos-x86_64.yaml

upload:
name: Prepare & Upload wheels to TestPyPI
Expand All @@ -71,6 +73,8 @@ jobs:
rename "s/linux/manylinux_2_28/" dist/PennyLane_Catalyst-*
rename "s/macosx_14/macosx_13/" dist/PennyLane_Catalyst-*
rename "s/_universal2/_x86_64/" dist/PennyLane_Catalyst-*
# Discard the 3.9 wheels to save space on nightly builds.
rm dist/PennyLane_Catalyst-*-cp39-cp39-*
- name: Upload wheels
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit d3b8cd4

Please sign in to comment.