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

chore: Fix CI after GHA's drop of node16 actions #1574

Merged
merged 40 commits into from
Dec 3, 2024

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 🤷‍♂️

.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/release.yml Show resolved Hide resolved
.github/workflows/release.yml Outdated Show resolved Hide resolved
.github/workflows/release.yml Outdated Show resolved Hide resolved
.github/workflows/release.yml Outdated Show resolved Hide resolved
@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