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
5262mvn \
5363 --no-transfer-progress \
5868 -Parrow-jni \
5969 clean \
6070 install
71+ github_actions_group_end
72+ github_actions_group_begin " Build docs"
6173# build docs
6274mvn \
6375 --no-transfer-progress \
6981 -Parrow-c-data \
7082 -Parrow-jni \
7183 site
84+ github_actions_group_end
7285popd
7386
87+ github_actions_group_begin " Prepare artifacts"
7488# copy all jar, zip and pom files to the distribution folder
7589find ~ /.m2/repository/org/apache/arrow \
7690 " (" \
@@ -87,3 +101,4 @@ for artifact in "${dist_dir}"/*; do
87101 sha256sum " ${artifact} " > " ${artifact} .sha256"
88102 sha512sum " ${artifact} " > " ${artifact} .sha512"
89103done
104+ github_actions_group_end
0 commit comments