Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python binary build support for Heroku-24 #1574

Merged
merged 1 commit into from
Apr 22, 2024
Merged

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Apr 22, 2024

This adds support for building Python binaries for Heroku-24 using GitHub Actions. Since the Heroku-24 base image supports both amd64 and arm64 (to allow for multi-arch CNBs), for Heroku-24 (only) we now also build binaries for both architectures.

A later PR will add support for Heroku-24 to the buildpack itself, however, that depends on (a) the Python binaries already having been built, (b) the Heroku build system for Heroku-24 being ready, so those changes are not being made yet.

GUS-W-15571102.

@edmorley edmorley self-assigned this Apr 22, 2024
@edmorley edmorley marked this pull request as ready for review April 22, 2024 11:48
@edmorley edmorley requested a review from a team as a code owner April 22, 2024 11:48
Base automatically changed from build-binary-specific-stack to main April 22, 2024 13:11
Copy link

@runesoerensen runesoerensen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉🥳

This adds support for building Python binaries for Heroku-24
using GitHub Actions. Since the Heroku-24 base image supports
both `amd64` and `arm64` (to allow for multi-arch CNBs), for
Heroku-24 (only) we now also build binaries for both architectures.

A later PR will add support for Heroku-24 to the buildpack itself,
however, that depends on (a) the Python binaries already having
been built, (b) the Heroku build system for Heroku-24 being ready,
so those changes are not being made here.

GUS-W-15571102.
@edmorley edmorley force-pushed the heroku-24-binaries branch from d48e8c4 to d4b40b2 Compare April 22, 2024 13:18
@edmorley edmorley enabled auto-merge (squash) April 22, 2024 13:18
@edmorley edmorley merged commit 18ce591 into main Apr 22, 2024
5 checks passed
@edmorley edmorley deleted the heroku-24-binaries branch April 22, 2024 13:20
@edmorley
Copy link
Member Author

Builds generated using:

for v in 3.12.{0..3}; do
  gh workflow run build_python_runtime.yml -F "python_version=${v}" -F "stack=heroku-24"
done

(I'll re-run these once Ubuntu 24.04 is GA and the base images refreshed with the final libs versions)

edmorley added a commit that referenced this pull request Apr 26, 2024
Following on from #1574 (which added support for building
and releasing Python binaries for Heroku-24), this adds support
for the new stack to the buildpack itself.

Heroku-24's base images are published as both `amd64` and `arm64`
variants (primarily for CNB multi-arch support), so the buildpack now
checks the architecture where necessary to ensure it continues to
operate should it be run against the `arm64` image outside of Heroku.
(However, when run on Heroku, this buildpack is still only ever run
on `amd64`.)

GUS-W-14667590.
@heroku-linguist heroku-linguist bot mentioned this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants