forked from Argyle-Software/kyber
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 916 Bytes
/
kat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
env:
RUSTFLAGS: "-Z sanitizer=address -C target-cpu=native -C target-feature=+aes,+avx2,+sse2,+sse4.1,+bmi2,+popcnt"
RUSTDOCFLAGS: "-Z sanitizer=address"
on:
workflow_dispatch:
pull_request:
branches: [ master ]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Rust Nightly
uses: actions-rs/[email protected]
with:
toolchain: nightly
override: true
- name: Install NASM Compiler
run: sudo apt-get install -y nasm
- name: Generate Known Answer Tests
shell: bash
working-directory: ./tests/KAT
run: |
chmod +x build_kats.sh
bash build_kats.sh
- name: Run Known Answer Tests
shell: bash
working-directory: ./tests
run: |
chmod +x run_all_tests.sh
KAT=1 AVX2=1 NASM=1 ./run_all_tests.sh