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 1a21da0 commit 399d756
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@ jobs:
- name: Build Java FFI
run: |
echo $HOME
cd /home/runner/work/java-crypto/java-crypto/mcl
ls
cd $HOME/work/java-crypto/java-crypto/mcl/ffi/java
# Add the path to the mcl library to the CMakeLists.txt
awk '{if ($0 ~ /option\(MCL_LINK_DIR "Absolute path where mcl static or dynamic library resides"\)/) {print "option(MCL_LINK_DIR \"Absolute path where mcl static or dynamic library resides\" \"/home/runner/work/java-crypto/java-crypto/mcl/build/lib;/home/runner/work/java-crypto/java-crypto/mcl/lib\")"} else {print $0}}' CMakeLists.txt > CMakeLists.tmp && mv CMakeLists.tmp CMakeLists.txt
mkdir build
cd build
cmake ..
awk '{if ($0 ~ /option\(MCL_LINK_DIR "Absolute path where mcl static or dynamic library resides"\)/) {print "option(MCL_LINK_DIR \"Absolute path where mcl static or dynamic library resides\" \"/home/runner/work/java-crypto/java-crypto/mcl/build/lib;/home/runner/work/java-crypto/java-crypto/mcl/lib\")"} else {print $0}}' CMakeLists.txt > CMakeLists.tmp && mv CMakeLists.tmp CMakeLists.txt
cat CMakeLists.txt
cmake --build . --config Release
- name: Install Nix
Expand Down

0 comments on commit 399d756

Please sign in to comment.