diff --git a/.github/tmpdir/.gitkeep b/.github/tmpdir/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/.github/workflows/build-hotspot.yml b/.github/workflows/build-hotspot.yml
index a07439a..2f2fcbd 100644
--- a/.github/workflows/build-hotspot.yml
+++ b/.github/workflows/build-hotspot.yml
@@ -53,8 +53,9 @@ jobs:
${{ runner.os }}-hotspot-maven-${{ inputs.JDK_VENDOR }}-${{ inputs.JDK_VERSION }}-
- name: "Build and test"
run: |
+ set -euo pipefail
export VERSION="git-$(date -d "$CI_COMMIT_TIMESTAMP" +'%Y%m%d-%H%M')-$CI_COMMIT_SHORT_SHA"
- mvn -B -e -fae --show-version -T$(nproc)C -Drevision="$VERSION" verify package
+ mvn -B -e -fae --show-version -T$(nproc)C -Drevision="$VERSION" -DsurefireTmpDir="$(pwd)/.github/tmpdir" verify package
awk -F"," '{ instructions += $4 + $5; covered += $5 } END { print covered, "/", instructions, " instructions covered"; print 100*covered/instructions, "% covered" }' target/site/jacoco/jacoco.csv
- name: "Archive jarfile"
uses: "actions/upload-artifact@v4"
diff --git a/.gitignore b/.gitignore
index b102024..b28d070 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
*.iml
.idea
+.github/tmpdir
target
zlib/
diff --git a/pom.xml b/pom.xml
index ab91495..0124f29 100644
--- a/pom.xml
+++ b/pom.xml
@@ -22,6 +22,8 @@
local-SNAPSHOT
${maven.build.timestamp}
+ ${java.io.tmpdir}
+
3.13.0
3.26.0
3.5.2
@@ -84,7 +86,7 @@
maven-surefire-plugin
${maven-surefire-plugin.version}
- --enable-preview @{jacoco.surefireArgLine} -javaagent:${org.mockito:mockito-core:jar} -Dspring.profiles.active=test
+ --enable-preview -Djava.io.tmpdir=${surefireTmpDir} @{jacoco.surefireArgLine} -javaagent:${org.mockito:mockito-core:jar} -Dspring.profiles.active=test
true