Skip to content

Commit

Permalink
Avoid sub-shell for copying dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
stanbrub committed Oct 9, 2024
1 parent ec13b8e commit 8a54998
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/scripts/make-release-distro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ ARTIFACT=deephaven-benchmark-${RELEASE_VERSION}
DISTRO_DEST=target/distro
THIS=$(basename "$0")
RELEASE_NOTES=target/release-notes.md
WORKING_DIR=$(pwd)

PREVIOUS_REF=${PREVIOUS_TAG}
if [[ ${PREVIOUS_VERSION} != *"."*"."* ]]; then
Expand All @@ -38,11 +39,13 @@ echo "**Full Changelog**: https://github.com/deephaven/benchmark/compare/${PREVI

# Generate dependencies directory
mkdir -p ${DISTRO_DEST}/libs/
cp ${DISTRO_SOURCE}/dependency-pom.xml ${DISTRO_DEST}
(cd ${DISTRO_DEST}; mvn -B install --file dependency-pom.xml)
mv ${DISTRO_DEST}/target/dependencies/* ${DISTRO_DEST}/libs/
rm -rf ${DISTRO_DEST}/target
rm ${DISTRO_DEST}/libs/deephaven-benchmark-*SNAPSHOT*.jar
cd ${DISTRO_DEST}
cp ${DISTRO_SOURCE}/dependency-pom.xml .
mvn -B install --file dependency-pom.xml
mv target/dependencies/* libs/
rm -rf target
rm libs/deephaven-benchmark-*SNAPSHOT*.jar
cd ${WORKING_DIR}

# Build the Distro for running standard benchmarks
cp ${DISTRO_SOURCE}/* ${DISTRO_DEST}
Expand Down

0 comments on commit 8a54998

Please sign in to comment.