File tree Expand file tree Collapse file tree 3 files changed +48
-89
lines changed
Expand file tree Collapse file tree 3 files changed +48
-89
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : liboqs-java CI
2+
3+ on :
4+ push :
5+ branches : ["**"]
6+ pull_request :
7+ branches : ["**"]
8+ repository_dispatch :
9+ types : ["**"]
10+
11+ jobs :
12+ workflowcheck :
13+ name : Check validity of GitHub workflows
14+ runs-on : ubuntu-latest
15+ container : openquantumsafe/ci-ubuntu-latest:latest
16+ steps :
17+ - name : Checkout code
18+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4
19+ - name : Ensure GitHub actions are valid
20+ run : actionlint -shellcheck "" # run *without* shellcheck
21+
22+ build-and-test :
23+ needs : workflowcheck
24+ name : OQS Ubuntu
25+ runs-on : ubuntu-latest
26+ container : openquantumsafe/ci-ubuntu-focal:latest
27+ steps :
28+ - name : Checkout liboqs-java
29+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4
30+ - name : Checkout liboqs main
31+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # pin@v4
32+ with :
33+ repository : open-quantum-safe/liboqs
34+ path : liboqs
35+ ref : main
36+ - name : Build liboqs
37+ run : mkdir build && cd build && cmake .. -G"Ninja" -DBUILD_SHARED_LIBS=ON -DOQS_BUILD_ONLY_LIB=ON && ninja install
38+ working-directory : liboqs
39+ - name : Resolve all maven project dependencies
40+ run : mvn dependency:go-offline
41+ - name : Build liboqs-java and run tests
42+ run : export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/lib" && mvn package
43+ - name : Compile KEM, Signatures and Rand examples
44+ run : |
45+ javac -cp target/liboqs-java.jar examples/KEMExample.java &&
46+ javac -cp target/liboqs-java.jar examples/SigExample.java &&
47+ javac -cp target/liboqs-java.jar examples/RandExample.java
Original file line number Diff line number Diff line change 1- [ ![ CircleCI Build Status] ( https://circleci .com/gh/ open-quantum-safe/liboqs-java/tree/master. svg?style=svg )] ( https://circleci .com/gh/ open-quantum-safe/liboqs-java/tree/master )
1+ [ ![ GitHub Actions Build Status] ( https://github .com/open-quantum-safe/liboqs-java/actions/workflows/java.yml/badge. svg )] ( https://github .com/open-quantum-safe/liboqs-java/actions/workflows/java.yml )
22
33# liboqs-java: Java wrapper for liboqs
44
You can’t perform that action at this time.
0 commit comments