Skip to content

Use cross-rs for building in CI#359

Merged
Mossaka merged 1 commit intocontainerd:mainfrom
jprendes:use-cross-in-ci
Oct 19, 2023
Merged

Use cross-rs for building in CI#359
Mossaka merged 1 commit intocontainerd:mainfrom
jprendes:use-cross-in-ci

Conversation

@jprendes
Copy link
Copy Markdown
Collaborator

@jprendes jprendes commented Oct 18, 2023

This PR switches CI to use the cross-rs support introduced in #332.
This should unblock #356.

This PR uses cross-rs for the linux builds of the shims. It generates a linux-musl and a linux-gnu artifacts using musl and glibc respectively.

It also stops building the shims on ubuntu-20.04. Since the cross-rs build happens in a container it is not necessary to build on different OS versions. However, we keep running e2e tests in ubuntu-20.04 to maintain test coverage on an OS running cgroups-v1.

The e2e tests are switched to use the musl build of the shims, as this would unblock #356.
Since cross-rs uses an older glibc version, it might be possible to also enable e2e tests using glibc, but I suggest we defer that to another PR after #356 is merged.

There are some complications around running the unit tests with cross-rs. This PR works around those issues by building the tests with cross-rs, but running them in the host. See #359 (comment) for more details.

@jprendes jprendes force-pushed the use-cross-in-ci branch 3 times, most recently from aefbb0b to 9bf40fe Compare October 18, 2023 15:00
@jprendes jprendes force-pushed the use-cross-in-ci branch 3 times, most recently from 5baa8b5 to 3e9329f Compare October 18, 2023 16:50
@jprendes jprendes marked this pull request as ready for review October 18, 2023 20:43
Mossaka
Mossaka previously approved these changes Oct 18, 2023
Copy link
Copy Markdown
Member

@Mossaka Mossaka left a comment

Choose a reason for hiding this comment

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

lgtm!

Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
@jsturtevant
Copy link
Copy Markdown
Contributor

LGTM

@jprendes jprendes changed the title Use cross for building in CI Use cross-rs for building in CI Oct 19, 2023
@Mossaka Mossaka merged commit cb4ddc9 into containerd:main Oct 19, 2023
@jprendes jprendes deleted the use-cross-in-ci branch February 27, 2025 10:31
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