Skip to content

Commit b19f65b

Browse files
committed
merge upstream
Signed-off-by: adijeshen <[email protected]>
2 parents 79090b5 + 4bdfa10 commit b19f65b

File tree

2 files changed

+12
-50
lines changed

2 files changed

+12
-50
lines changed

.github/workflows/java.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ jobs:
3333
path: liboqs
3434
ref: main
3535
- name: Build liboqs
36+
<<<<<<< HEAD
3637
run: mkdir build && cd build && cmake .. -G"Ninja" -DOQS_BUILD_ONLY_LIB=ON && ninja install
38+
=======
39+
run: mkdir build && cd build && cmake .. -G"Ninja" -DBUILD_SHARED_LIBS=ON -DOQS_BUILD_ONLY_LIB=ON && ninja install
40+
>>>>>>> upstream/master
3741
working-directory: liboqs
3842
- name: Resolve all maven project dependencies
3943
run: mvn dependency:go-offline
@@ -65,7 +69,11 @@ jobs:
6569
run: env HOMEBREW_NO_AUTO_UPDATE=1 brew install ninja && pip3 install --require-hashes --break-system-packages -r .github/workflows/requirements.txt
6670
working-directory: liboqs
6771
- name: Build liboqs
72+
<<<<<<< HEAD
6873
run: mkdir build && cd build && cmake .. -G"Ninja" -DOQS_BUILD_ONLY_LIB=ON && sudo ninja install
74+
=======
75+
run: mkdir build && cd build && cmake .. -G"Ninja" -DBUILD_SHARED_LIBS=ON -DOQS_BUILD_ONLY_LIB=ON && sudo ninja install
76+
>>>>>>> upstream/master
6977
working-directory: liboqs
7078
- name: Resolve all maven project dependencies
7179
run: mvn dependency:go-offline
@@ -76,6 +84,7 @@ jobs:
7684
javac -cp target/liboqs-java.jar examples/KEMExample.java &&
7785
javac -cp target/liboqs-java.jar examples/SigExample.java &&
7886
javac -cp target/liboqs-java.jar examples/RandExample.java
87+
<<<<<<< HEAD
7988

8089
windows:
8190
needs: workflowcheck
@@ -130,3 +139,5 @@ jobs:
130139
javac -cp target\liboqs-java.jar examples\KEMExample.java
131140
javac -cp target\liboqs-java.jar examples\SigExample.java
132141
javac -cp target\liboqs-java.jar examples\RandExample.java
142+
=======
143+
>>>>>>> upstream/master

README.md

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -68,53 +68,7 @@ Builds have been tested on Linux (Ubuntu 18.04 LTS, 19.10, and 20.04) and macOS
6868

6969
#### Installation Steps
7070

71-
1. Install MinGW-w64 GCC:
72-
- Download from [WinLibs](https://winlibs.com/#download-release)
73-
- Extract the ZIP file to a directory without spaces
74-
- Add the bin directory to PATH environment variable (e.g., `E:\develop\mingw64\bin`)
75-
- Via Control Panel → System → System Info → Advanced System Settings → Advanced → Environment Variables → PATH
76-
- Or via command line: `setx PATH "E:\develop\mingw64\bin;%PATH%"` (not recommended)
77-
78-
2. Install CMake:
79-
- Either via winget: `winget install cmake`
80-
- Or download from [cmake.org](https://cmake.org/download/)
81-
- Ensure CMake is added to PATH
82-
83-
3. Verify installations:
84-
```bash
85-
gcc --version
86-
cmake --version
87-
```
88-
89-
4. Clone the repository:
90-
```bash
91-
git clone --recursive https://github.com/open-quantum-safe/liboqs-java
92-
```
93-
94-
5. Build liboqs:
95-
```bash
96-
cd liboqs
97-
cmake -G "MinGW Makefiles" -DCMAKE_C_COMPILER=gcc -DBUILD_SHARED_LIBS=OFF -S . -B build
98-
cmake --build build -j 4
99-
cmake --install build
100-
cd ..
101-
```
102-
103-
6. Install Java dependencies:
104-
- Install JDK 1.8 from [OpenLogic](https://www.openlogic.com/openjdk-downloads)
105-
- Install Maven 3.8.8 from [Maven](https://maven.apache.org/)
106-
- Add both to PATH environment variables
107-
108-
7. Verify Java installations:
109-
```bash
110-
java -version
111-
mvn -version
112-
```
113-
114-
8. Build the package:
115-
```bash
116-
mvn package -P windows
117-
```
71+
Builds are tested in GitHub Actions on Linux (Ubuntu 24.04 with OpenJDK 21) and macOS ([macos-latest runner](https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories), at macOS Sonoma with Java 21 as of liboqs-java 0.2.0 release).
11872

11973
### Pre-requisites
12074
To build the Java OQS wrapper you need a Java Development Kit (JDK), such as [OpenJDK](https://openjdk.java.net/) >= 8 and [Apache Maven](https://maven.apache.org/).
@@ -436,6 +390,3 @@ Contributors to the liboqs-java wrapper include:
436390
437391
[KEM-overview]: ./images/KEM.png
438392
[DS-overview]: ./images/digital-signature.png
439-
440-
[badge-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=svg
441-
[badge-circleci]: https://img.shields.io/circleci/build/github/open-quantum-safe/liboqs-java?logo=circleci

0 commit comments

Comments
 (0)