1#!/bin/sh 2 3set -ex 4 5cd `dirname $0`/../.. 6 7git submodule update --init 8export GIT_TAG=$(git describe --tags) 9 10mvn -B package -DskipTests -P mac-arm64 -Dcrt.classifier=osx-aarch_64 11 12# Copy artifacts to dist 13mkdir -p ../dist 14# Note: as we ran mvn install, the dist has unexpected files, using S3 bucket to transfer artifact instead 15cp -rv target/cmake-build/lib ../dist/ 16 17aws s3 cp --recursive --exclude "*" --include "*.dylib" ./target/cmake-build/lib s3://aws-crt-java-pipeline/${GIT_TAG}/lib 18aws s3 cp --recursive --exclude "*" --include "aws-crt*.jar" ./target s3://aws-crt-java-pipeline/${GIT_TAG}/jar 19