Merge pull request #15 from itzmeanjan/bump-sha3-to-latest #43
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: Test FrodoKEM using CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name : Fetch Dependency | |
run: git submodule update --init | |
- name: Get CMake | |
run: sudo apt-get install cmake | |
- name: Setup Google-Test | |
run: | | |
pushd ~ | |
git clone https://github.com/google/googletest.git -b v1.13.0 | |
pushd googletest | |
mkdir build | |
pushd build | |
cmake .. -DBUILD_GMOCK=OFF | |
make | |
sudo make install | |
popd | |
popd | |
popd | |
- name: Execute Tests | |
run: make -j | |
- name: Run Examples | |
run: | | |
g++ -std=c++20 -O3 -march=native -mtune=native -Wall -I include -I sha3/include -I subtle/include examples/efrodo640_kem.cpp | |
./a.out | |
g++ -std=c++20 -O3 -march=native -mtune=native -Wall -I include -I sha3/include -I subtle/include examples/frodo640_kem.cpp | |
./a.out | |
- name: Cleanup | |
run: make clean |