Run Tests with ASAN, UBSAN #57
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
# Collects inspiration from https://github.com/itzmeanjan/dilithium/blob/15c2280f9448b3631a571ee2f33f8b0c695d4788/.github/workflows/test_ci.yml | |
name: Test SHA3 Hash and Extendable Output Functions using CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
# From https://github.com/marketplace/actions/actions-setup-cmake | |
- name: Setup CMake | |
uses: jwlawson/actions-setup-cmake@v1.13 | |
with: | |
cmake-version: 'latest' | |
- name: Setup Google-Test | |
run: | | |
pushd ~ | |
git clone https://github.com/google/googletest.git -b v1.14.0 | |
pushd googletest | |
mkdir build | |
pushd build | |
cmake .. -DBUILD_GMOCK=OFF | |
make | |
sudo make install | |
popd | |
popd | |
popd | |
- name: Execute Tests on ${{matrix.os}} | |
run: make -j | |
- name: Execute Tests with AddressSanitizer on ${{matrix.os}} | |
run: make asan_test -j | |
- name: Execute Tests with UndefinedBehaviourSanitizer on ${{matrix.os}} | |
run: make ubsan_test -j |