mirror of
https://github.com/itzmeanjan/ml-kem.git
synced 2026-01-09 15:47:55 -05:00
Update github actions script to run all combination of ASAN, UBSAN tests, with two compilers i.e. Clang and GCC
Signed-off-by: Anjan Roy <hello@itzmeanjan.in>
This commit is contained in:
21
.github/workflows/test_ci.yml
vendored
21
.github/workflows/test_ci.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Test Ml_kem Key Encapsulation Mechanism
|
||||
name: Test ML-KEM Key Encapsulation Mechanism (NIST FIPS 203)
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -12,13 +12,14 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest]
|
||||
compiler: [g++, clang++]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Google-Test
|
||||
run: |
|
||||
pushd ~
|
||||
git clone https://github.com/google/googletest.git -b v1.14.0
|
||||
git clone https://github.com/google/googletest.git -b v1.15.0
|
||||
pushd googletest
|
||||
mkdir build
|
||||
pushd build
|
||||
@@ -28,9 +29,13 @@ jobs:
|
||||
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
|
||||
- name: Execute Tests on ${{matrix.os}}, compiled with ${{matrix.compiler}}
|
||||
run: CXX=${{matrix.compiler}} make -j
|
||||
- name: Execute Tests with AddressSanitizer, in DEBUG mode, on ${{matrix.os}}, compiled with ${{matrix.compiler}}
|
||||
run: CXX=${{matrix.compiler}} make debug_asan_test -j
|
||||
- name: Execute Tests with AddressSanitizer, in RELEASE mode, on ${{matrix.os}}, compiled with ${{matrix.compiler}}
|
||||
run: CXX=${{matrix.compiler}} make release_asan_test -j
|
||||
- name: Execute Tests with UndefinedBehaviourSanitizer, in DEBUG mode, on ${{matrix.os}}, compiled with ${{matrix.compiler}}
|
||||
run: CXX=${{matrix.compiler}} make debug_ubsan_test -j
|
||||
- name: Execute Tests with UndefinedBehaviourSanitizer, in RELEASE mode, on ${{matrix.os}}, compiled with ${{matrix.compiler}}
|
||||
run: CXX=${{matrix.compiler}} make release_ubsan_test -j
|
||||
|
||||
Reference in New Issue
Block a user