Skip to content

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.

@fniephaus fniephaus force-pushed the dev branch 3 times, most recently from 9f85030 to 927fe11 Compare January 24, 2022 12:54
@fniephaus fniephaus merged commit f497c46 into graalvm:main Jan 24, 2022
@fniephaus fniephaus deleted the dev branch January 24, 2022 14:06
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.

3 participants