1717# specific language governing permissions and limitations
1818# under the License.
1919
20- set -eu
20+ set -euo pipefail
2121
22+ # shellcheck source=ci/scripts/util_log.sh
23+ . " $( dirname " ${0} " ) /util_log.sh"
24+
25+ github_actions_group_begin " Prepare arguments"
2226source_dir=" $( cd " ${1} " && pwd) "
2327jni_build_dir=" $( cd " ${2} " && pwd) "
2428dist_dir=" ${3} "
2529rm -rf " ${dist_dir} "
2630mkdir -p " ${dist_dir} "
2731dist_dir=" $( cd " ${dist_dir} " && pwd) "
32+ github_actions_group_end
2833
34+ github_actions_group_begin " Clear old artifacts"
2935# Ensure that there is no old artifacts inside the maven repository
3036maven_repo=~ /.m2/repository/org/apache/arrow
3137if [ -d " $maven_repo " ]; then
@@ -34,7 +40,9 @@ if [ -d "$maven_repo" ]; then
3440 -exec echo {} " ;" \
3541 -exec rm -rf {} " ;"
3642fi
43+ github_actions_group_end
3744
45+ github_actions_group_begin " Generate dummy GPG key"
3846# Generate dummy GPG key for -Papache-release.
3947# -Papache-release generates signs (*.asc) of artifacts.
4048# We don't use these signs in our release process.
4654 echo " %no-protection"
4755) |
4856 gpg --full-generate-key --batch
57+ github_actions_group_end
4958
5059pushd " ${source_dir} "
60+ github_actions_group_begin " Build .jar"
5161# build the entire project
52- mvn clean \
53- install \
62+ mvn \
63+ --no-transfer-progress \
64+ -Darrow.c.jni.dist.dir=" ${jni_build_dir} " \
65+ -Darrow.cpp.build.dir=" ${jni_build_dir} " \
5466 -Papache-release \
5567 -Parrow-c-data \
5668 -Parrow-jni \
57- -Darrow.cpp.build.dir=" ${jni_build_dir} " \
69+ clean \
70+ install
71+ github_actions_group_end
72+ github_actions_group_begin " Build docs"
73+ # build docs
74+ mvn \
75+ --no-transfer-progress \
5876 -Darrow.c.jni.dist.dir=" ${jni_build_dir} " \
59- --no-transfer-progress
77+ -Darrow.cpp.build.dir=" ${jni_build_dir} " \
78+ -Dcheckstyle.skip=true \
79+ -Dhttp.keepAlive=false \
80+ -Dmaven.wagon.http.pool=false \
81+ -Parrow-c-data \
82+ -Parrow-jni \
83+ site
84+ github_actions_group_end
6085popd
6186
87+ github_actions_group_begin " Prepare artifacts"
6288# copy all jar, zip and pom files to the distribution folder
6389find ~ /.m2/repository/org/apache/arrow \
6490 " (" \
@@ -75,3 +101,4 @@ for artifact in "${dist_dir}"/*; do
75101 sha256sum " ${artifact} " > " ${artifact} .sha256"
76102 sha512sum " ${artifact} " > " ${artifact} .sha512"
77103done
104+ github_actions_group_end
0 commit comments