Skip to content

Commit 8bfdf45

Browse files
committed
bug fixes in workflow
1 parent d7a9ad6 commit 8bfdf45

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

‎.github/workflows/maven.yaml‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,20 @@ jobs:
3131
echo "Java 25 detected → Building all modules, but skipping parser-ng-gpu-simd tests"
3232
# 1. Build and install all modules into local .m2 without running tests
3333
mvn -B --update-snapshots clean install -Dgpg.skip -DskipTests
34-
# 2. Run tests for all modules EXCEPT parser-ng-gpu-simd
34+
35+
# 2. Run tests for all modules EXCEPT parser-ng-gpu-simd with JDK 25 memory access configurations
36+
JDK_JAVA_OPTIONS="--add-opens=java.base/java.nio=ALL-UNNAMED --enable-native-access=ALL-UNNAMED" \
37+
MAVEN_OPTS="-DargLine=\"--add-opens=java.base/java.nio=ALL-UNNAMED --enable-native-access=ALL-UNNAMED\"" \
3538
mvn -B test -pl "!parser-ng-gpu-simd"
3639
3740
elif [ "${{ matrix.java-version }}" -ge 22 ]; then
3841
echo "Java 22-24 detected → Building core + CPU SIMD + GPU SIMD + Arrow, but skipping parser-ng-gpu-simd tests"
3942
# 1. Build without tests (excluding bench)
4043
mvn -B --update-snapshots clean install -Dgpg.skip -pl "!parser-ng-bench" -DskipTests
41-
# 2. Run tests excluding both bench AND gpu-simd
44+
45+
# 2. Run tests excluding both bench AND gpu-simd with modern JDK memory overrides
46+
JDK_JAVA_OPTIONS="--add-opens=java.base/java.nio=ALL-UNNAMED --enable-native-access=ALL-UNNAMED" \
47+
MAVEN_OPTS="-DargLine=\"--add-opens=java.base/java.nio=ALL-UNNAMED --enable-native-access=ALL-UNNAMED\"" \
4248
mvn -B test -pl "!parser-ng-bench,!parser-ng-gpu-simd"
4349
4450
elif [ "${{ matrix.java-version }}" -eq 21 ]; then
@@ -48,4 +54,4 @@ jobs:
4854
else
4955
echo "Legacy Java (< 21) detected → Building core engine only (excluding SIMD, GPU, Arrow, bench and parser-ng-sql and parser-ng-parquet)"
5056
mvn -B --update-snapshots clean install -Dgpg.skip -pl "!parser-ng-simd,!parser-ng-bench,!parser-ng-gpu-simd,!parser-ng-arrow,!parser-ng-sql,!parser-ng-parquet"
51-
fi
57+
fi

0 commit comments

Comments
 (0)