Skip to content

Conversation

@mjameswh
Copy link
Contributor

@mjameswh mjameswh commented Nov 26, 2024

What changed

  • Modified our GHA workflows so that when building the release-grade native artifacts on Linux targets, only the actual Rust compilation step runs inside a GLIBC 2.24-based Docker container; all other operations are performed directly on the runner, which can now be any recent Ubuntu.

    This was required because GHA no longer allows actions based on Node16 (i.e. actions are forced to use Node20 instead), but Node20 requires at least GLIBC 2.28. It is therefore not possible to have a single execution environment that can both execute Node20-based actions, yet produces native libraries that can then execute in the GLIBC 2.24-based environments that some of our users have.

  • Given that the build-step-in-docker approach is much slower and less likely to benefit from the build cache, we only use that approach when building release-grade native artifacts. That is, we use a fast, non-docker and non-glibc-24-compatible build approach in 'Continuous Integration', but a longer, optimized and glibc-24 compatible build in 'Build Packages'.

@mjameswh mjameswh requested a review from a team as a code owner November 26, 2024 17:15
@mjameswh mjameswh self-assigned this Nov 26, 2024
@mjameswh mjameswh changed the title [WIP] chore: Fix CI after GHA's drop of node16 actions chore: Fix CI after GHA's drop of node16 actions Nov 27, 2024
Copy link
Member

@Sushisource Sushisource left a comment

Choose a reason for hiding this comment

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

I do wonder if we really need this combinatorial explosion of matrix options, but, if it's free 🤷‍♂️

@mjameswh mjameswh merged commit be37851 into temporalio:main Dec 3, 2024
22 checks passed
@mjameswh mjameswh deleted the fix-gha-node16-deprecation branch December 3, 2024 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants