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

Introduce native-image-musl feature. #4

Merged
merged 2 commits into from
Jan 24, 2022
Merged

Conversation

fniephaus
Copy link
Member

@fniephaus fniephaus commented Jan 21, 2022

This PR introduces the native-image-musl feature, which allows setting up a musl build environment for static image building with GraalVM Native Image (as discussed at oracle/graal#4150 (comment)).

Copy link

@gradinac gradinac left a comment

Choose a reason for hiding this comment

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

From the native-image point of view, the changes to support musl seem spot on :)

src/features.ts Outdated
await tc.extractTar(muslDownloadPath, basePath)
const muslPath = join(basePath, muslName)
core.addPath(join(muslPath, 'bin'))
core.exportVariable('CC', join(muslPath, 'bin', 'gcc'))

Choose a reason for hiding this comment

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

I'm not very familiar with the github actions API, but could we unset CC after we compile and install zlib? As the variable is only needed to build zlib, we should be able to remove it afterwards

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for pointing that out! I've dropped the export of CC and added it to the zlib build commands instead.

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.

None yet

3 participants