This is an automated email from the ASF dual-hosted git repository.
Fokko pushed a commit to branch fd-emit-snapshot
in repository https://gitbox.apache.org/repos/asf/parquet-format.git
The following commit(s) were added to refs/heads/fd-emit-snapshot by this push:
new 329336e Move installing Thrift to a separate script
new 63e3922 Merge branch 'fd-emit-snapshot' of
github.com:apache/parquet-format into fd-emit-snapshot
329336e is described below
commit 329336ed582bd785288d909174f786ec027a62e6
Author: Fokko Driesprong <[email protected]>
AuthorDate: Tue Sep 1 16:23:31 2026 +0200
Move installing Thrift to a separate script
---
.github/workflows/publish_snapshot.yml | 10 +---------
.github/workflows/test.yml | 10 +---------
dev/install-thrift.sh | 35 ++++++++++++++++++++++++++++++++++
3 files changed, 37 insertions(+), 18 deletions(-)
diff --git a/.github/workflows/publish_snapshot.yml
b/.github/workflows/publish_snapshot.yml
index 1ddb1aa..12be625 100644
--- a/.github/workflows/publish_snapshot.yml
+++ b/.github/workflows/publish_snapshot.yml
@@ -35,15 +35,7 @@ jobs:
java-version: 17
- name: Install Thrift
- run: |
- sudo apt-get update -qq
- sudo apt-get install -qq protobuf-compiler
- sudo apt-get install -qq libboost-dev libboost-test-dev
libboost-program-options-dev libevent-dev automake libtool flex bison
pkg-config g++ libssl-dev
- wget -qO-
https://archive.apache.org/dist/thrift/0.23.0/thrift-0.23.0.tar.gz | tar zxf -
- cd thrift-0.23.0/
- chmod +x ./configure
- ./configure --disable-libs
- sudo make install
+ run: ./dev/install-thrift.sh
- name: Publish snapshot
env:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index d0f3c2a..3b07e8d 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -49,15 +49,7 @@ jobs:
java-version: ${{ matrix.java }}
distribution: temurin
- name: before_install
- run: |
- sudo apt-get update -qq
- sudo apt-get install -qq protobuf-compiler
- sudo apt-get install -qq libboost-dev libboost-test-dev
libboost-program-options-dev libevent-dev automake libtool flex bison
pkg-config g++ libssl-dev
- wget -qO-
https://archive.apache.org/dist/thrift/0.23.0/thrift-0.23.0.tar.gz | tar zxf -
- cd thrift-0.23.0/
- chmod +x ./configure
- ./configure --disable-libs
- sudo make install
+ run: ./dev/install-thrift.sh
- name: install
run: |
mvn install --batch-mode -DskipTests=true -Dmaven.javadoc.skip=true
-Dsource.skip=true -Djava.version=${{ matrix.java }}
diff --git a/dev/install-thrift.sh b/dev/install-thrift.sh
new file mode 100755
index 0000000..d6be3bb
--- /dev/null
+++ b/dev/install-thrift.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+# Installs Apache Thrift (and its build dependencies) from source.
+# Used by the GitHub Actions workflows to generate the Parquet thrift bindings.
+
+set -euo pipefail
+
+THRIFT_VERSION="${THRIFT_VERSION:-0.23.0}"
+
+sudo apt-get update -qq
+sudo apt-get install -qq protobuf-compiler
+sudo apt-get install -qq libboost-dev libboost-test-dev
libboost-program-options-dev libevent-dev automake libtool flex bison
pkg-config g++ libssl-dev
+
+wget -qO-
"https://archive.apache.org/dist/thrift/${THRIFT_VERSION}/thrift-${THRIFT_VERSION}.tar.gz"
| tar zxf -
+cd "thrift-${THRIFT_VERSION}/"
+chmod +x ./configure
+./configure --disable-libs
+sudo make install