Skip to content

Commit 643e2a1

Browse files
committed
Add build workflow for patched Iceberg runtime
1 parent 0518651 commit 643e2a1

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build Patched Iceberg Hive Runtime
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version for the JAR (e.g. 1.6.2)'
8+
required: true
9+
default: '1.6.2'
10+
base_tag:
11+
description: 'Base Iceberg tag to build from (e.g. apache-iceberg-1.6.1)'
12+
required: true
13+
default: 'apache-iceberg-1.6.1'
14+
15+
jobs:
16+
build-and-release:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Java 8
26+
uses: actions/setup-java@v4
27+
with:
28+
distribution: 'corretto'
29+
java-version: '8'
30+
31+
- name: Set version
32+
run: echo "${{ github.event.inputs.version }}" > version.txt
33+
34+
- name: Build shadow JAR
35+
run: ./gradlew clean :iceberg-hive-runtime:shadowJar -x test -x integrationTest
36+
37+
- name: Create release
38+
uses: softprops/action-gh-release@v2
39+
with:
40+
tag_name: v${{ github.event.inputs.version }}
41+
name: Iceberg Hive Runtime ${{ github.event.inputs.version }}
42+
body: |
43+
Patched `iceberg-hive-runtime` built from `${{ github.event.inputs.base_tag }}` with:
44+
- HiveClientPool: configurable metastore client via `iceberg.hive.client.class` (for Glue catalog)
45+
- Built with Hive 3 profile + Java 8
46+
files: hive-runtime/build/libs/iceberg-hive-runtime-${{ github.event.inputs.version }}.jar
47+
make_latest: true

0 commit comments

Comments
 (0)