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 846aaaf commit f892938
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,13 @@ jobs:
cd build
cmake ..
make
- name: Set LD_LIBRARY_PATH for mcl
run: echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/work/java-crypto/java-crypto/mcl/build/lib" >> $GITHUB_ENV

- name: Build Java FFI
run: |
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/
cd $HOME/work/java-crypto/java-crypto/mcl/ffi/java
echo "contents of path"
ls /home/runner/work/java-crypto/java-crypto/mcl/build/lib
# 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
Expand Down

0 comments on commit f892938

Please sign in to comment.