Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsobries committed Aug 8, 2024
1 parent 33a9d3d commit a611897
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,21 +59,21 @@ jobs:
- name: Copy mcl library to /usr/local/lib
run: |
sudo cp /home/runner/work/java-crypto/java-crypto/mcl/build/lib/libmcl.a /usr/local/lib/
# sudo cp /home/runner/work/java-crypto/java-crypto/mcl/build/lib/libmcl.so* /usr/local/lib/
# sudo cp /home/runner/work/java-crypto/java-crypto/mcl/build/lib/libmclbn*.so* /usr/local/lib/
- name: Build Java FFI
run: |
cd $HOME/work/java-crypto/java-crypto/mcl/ffi/java
# # Fix `Could not find MCL_LIBRARY using the following names: mcl` error
# awk '{if ($0 ~ /set\(CMAKE_FIND_LIBRARY_SUFFIXES .a .lib\)/) {print "set(CMAKE_FIND_LIBRARY_SUFFIXES .a .so)"} else {print $0}}' CMakeLists.txt > CMakeLists.tmp && mv CMakeLists.tmp CMakeLists.txt
# TBD
# awk '{if ($0 ~ /option\(MCL_LINK_DIR "Absolute path where mcl static or dynamic library resides"\)/) {print "option(MCL_LINK_DIR \"/home/runner/work/java-crypto/java-crypto/mcl/build/lib\")"} else {print $0}}' CMakeLists.txt > CMakeLists.tmp && mv CMakeLists.tmp CMakeLists.txt
mkdir build
cd build
cmake ..
cmake --build . --config Release
- name: Copy mcl library to /usr/local/lib
run: |
echo "dir contents"
ls /home/runner/work/java-crypto/java-crypto/mcl/ffi/java/build
# sudo cp /home/runner/work/java-crypto/java-crypto/mcl/build/lib/libmcl.a /usr/local/lib/
- name: Install Nix
uses: cachix/install-nix-action@v27

Expand Down

0 comments on commit a611897

Please sign in to comment.