Skip to content

Workflow file for this run

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