Skip to content

Commit da8524e

Browse files
committed
Log
1 parent 01da511 commit da8524e

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

ci/scripts/jni_full_build.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,21 @@
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"
2226
source_dir="$(cd "${1}" && pwd)"
2327
jni_build_dir="$(cd "${2}" && pwd)"
2428
dist_dir="${3}"
2529
rm -rf "${dist_dir}"
2630
mkdir -p "${dist_dir}"
2731
dist_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
3036
maven_repo=~/.m2/repository/org/apache/arrow
3137
if [ -d "$maven_repo" ]; then
@@ -34,7 +40,9 @@ if [ -d "$maven_repo" ]; then
3440
-exec echo {} ";" \
3541
-exec rm -rf {} ";"
3642
fi
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.
@@ -46,8 +54,10 @@ fi
4654
echo "%no-protection"
4755
) |
4856
gpg --full-generate-key --batch
57+
github_actions_group_end
4958

5059
pushd "${source_dir}"
60+
github_actions_group_begin "Build .jar"
5161
# build the entire project
5262
mvn \
5363
--no-transfer-progress \
@@ -58,6 +68,8 @@ mvn \
5868
-Parrow-jni \
5969
clean \
6070
install
71+
github_actions_group_end
72+
github_actions_group_begin "Build docs"
6173
# build docs
6274
mvn \
6375
--no-transfer-progress \
@@ -69,8 +81,10 @@ mvn \
6981
-Parrow-c-data \
7082
-Parrow-jni \
7183
site
84+
github_actions_group_end
7285
popd
7386

87+
github_actions_group_begin "Prepare artifacts"
7488
# copy all jar, zip and pom files to the distribution folder
7589
find ~/.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"
89103
done
104+
github_actions_group_end

0 commit comments

Comments
 (0)