Skip to content

Commit 2129cef

Browse files
committed
Install jdk package and set JAVA_HOME
Signed-off-by: Spencer Wilson <[email protected]>
1 parent 8a5d54f commit 2129cef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/java.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
runs-on: ubuntu-latest
2626
container: openquantumsafe/ci-ubuntu-latest:latest
2727
steps:
28+
- name: Install dependencies
29+
uses: apt-get update && apt-get install default-jdk-headless
2830
- name: Checkout liboqs-java
2931
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4
3032
- name: Checkout liboqs main
@@ -39,7 +41,7 @@ jobs:
3941
- name: Resolve all maven project dependencies
4042
run: mvn dependency:go-offline
4143
- name: Build liboqs-java and run tests
42-
run: export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib" && mvn package
44+
run: export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib" && export JAVA_HOME=/usr/lib/jvm/default-java && mvn package
4345
- name: Compile KEM, Signatures and Rand examples
4446
run: |
4547
javac -cp target/liboqs-java.jar examples/KEMExample.java &&

0 commit comments

Comments
 (0)