Skip to content

Commit ce17d1e

Browse files
committed
tmp1
1 parent b7ebe43 commit ce17d1e

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/Java.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
make format-check
2727
2828
java-linux-amd64:
29+
if: ${{ false }}
2930
name: Java Linux (amd64)
3031
runs-on: ubuntu-latest
3132
needs: format-check
@@ -115,6 +116,50 @@ jobs:
115116
path: |
116117
build/release/duckdb_jdbc.jar
117118
119+
java-linux-amd64-musl:
120+
name: Java Linux (amd64-musl)
121+
runs-on: ubuntu-latest
122+
needs: format-check
123+
env:
124+
ALPINE_IMAGE: alpine:3.21
125+
ALPINE_PACKAGES: cmake g++ make ninja-build opendjk8-jdk
126+
steps:
127+
- uses: actions/checkout@v4
128+
with:
129+
fetch-depth: 0
130+
131+
- name: Build
132+
shell: bash
133+
run: |
134+
docker run \
135+
-v.:/duckdb \
136+
-e GEN=ninja \
137+
-e JAVA_HOME=/usr/lib/jvm/java-8-openjdk \
138+
${{ env.ALPINE_IMAGE }} \
139+
bash -c 'apk get ${{ env.ALPINE_PACKAGES }} && make -C /duckdb release'
140+
141+
- name: JDBC Tests
142+
shell: bash
143+
if: ${{ inputs.skip_tests != 'true' }}
144+
run: |
145+
docker run \
146+
-v.:/duckdb \
147+
-e GEN=ninja \
148+
-e JAVA_HOME=/usr/lib/jvm/java-8-openjdk \
149+
${{ env.ALPINE_IMAGE }} \
150+
bash -c 'apk get ${{ env.MANYLINUX_PACKAGES }} && make -C /duckdb test'
151+
152+
- name: Deploy
153+
shell: bash
154+
run: |
155+
cp build/release/duckdb_jdbc.jar duckdb_jdbc-linux-amd64-musl.jar
156+
./scripts/upload-assets-to-staging.sh github_release duckdb_jdbc-linux-amd64-musl.jar
157+
158+
- uses: actions/upload-artifact@v4
159+
with:
160+
name: java-linux-amd64-musl
161+
path: |
162+
build/release/duckdb_jdbc.jar
118163
119164
java-windows-amd64:
120165
name: Java Windows (amd64)

0 commit comments

Comments
 (0)