Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Checkout libsodium | |
run: | | |
mkdir libsodium | |
cd libsodium | |
git init | |
git fetch https://github.com/jedisct1/libsodium.git 3c49e89c19d06d9967180dda887fb15ae2e0fa40 | |
git checkout FETCH_HEAD | |
git clone -n https://github.com/jedisct1/libsodium.git | |
cd .. | |
- name: Build libsodium | |
run: | | |
sudo apt-get install libtool libnss3-dev libssl-dev libwolfssl-dev | |
cd libsodium && ./autogen.sh -s && ./configure --enable-opt && make -j $(nproc) && make check && sudo make install && sudo ldconfig && cd .. | |
- name: Build and run | |
run: | | |
cat /proc/cpuinfo | |
mkdir build && cd build | |
cmake .. && make -j $(nproc) | |
./crypto_benchmark |