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

Build duckdb_java linux-amd64-musl #120

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

hrl20
Copy link

@hrl20 hrl20 commented Jan 7, 2025

Build duckdb_java for Alpine linux on amd64

(arm64 is possible but takes 4+ hours on the default GHA runner, so skipping for now)

Copy link
Contributor

@carlopi carlopi left a comment

Choose a reason for hiding this comment

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

Main question: can we get away from static linking the libc++ ?
I see that working with, question is if we can manage without.

image: alpine:latest
env:
GEN: ninja
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true

I think this is no more supported / not useful

Comment on lines +67 to +86
# Check if the current system is Alpine Linux
function(is_alpine_linux RESULT)
if(UNIX AND NOT APPLE)
if(EXISTS "/etc/os-release")
file(READ "/etc/os-release" OS_RELEASE_CONTENTS)
string(FIND "${OS_RELEASE_CONTENTS}" "Alpine Linux" ALPINE_FOUND)

if(ALPINE_FOUND GREATER -1)
set(${RESULT} TRUE PARENT_SCOPE)
else()
set(${RESULT} FALSE PARENT_SCOPE)
endif()
else()
set(${RESULT} FALSE PARENT_SCOPE)
endif()
else()
set(${RESULT} FALSE PARENT_SCOPE)
endif()
endfunction()

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! Would you mind sending a PR with this also to duckdb/duckdb ?
Current detection is somehow worse, I think this might be handy in general.

@@ -107,7 +107,7 @@ jobs:
# ./scripts/upload-assets-to-staging.sh github_release duckdb_jdbc-linux-aarch64.jar

- uses: actions/upload-artifact@v3
with:
with: duckdb_jdbc-linux-aarch64
Copy link
Member

Choose a reason for hiding this comment

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

this doesn't look valid, can you please remove it?

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