mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
git-subtree-dir: crypto/libecc git-subtree-mainline: f59bb61e1eb4d1e4fc3c60cc14779d0668267cb2 git-subtree-split: 736d663976d1768533badbf06581481d01fade4c (cherry picked from commit f0865ec9906d5a18fa2a3b61381f22ce16e606ad)
57 lines
2 KiB
YAML
57 lines
2 KiB
YAML
name: libecc
|
||
|
||
# Run this workflow every time a new commit pushed to your repository
|
||
on: push
|
||
|
||
jobs:
|
||
compilation_tests:
|
||
runs-on: ubuntu-22.04
|
||
strategy:
|
||
#max-parallel: 10
|
||
matrix:
|
||
cc: [gcc, clang, g++, clang++]
|
||
blinding: [0, 1]
|
||
complete: [0, 1]
|
||
ladder: [0, 1]
|
||
cryptofuzz: [0, 1]
|
||
optflags: ["-O3", "-O2", "-O1"]
|
||
steps:
|
||
# Checkout repository
|
||
- name: checkout repository
|
||
uses: actions/checkout@v2
|
||
# Run actions
|
||
# libecc compilation tests
|
||
- name: libecc compilation tests
|
||
env:
|
||
CC: ${{ matrix.cc }}
|
||
BLINDING: ${{ matrix.blinding }}
|
||
COMPLETE: ${{ matrix.complete }}
|
||
LADDER: ${{ matrix.ladder }}
|
||
CRYPTOFUZZ: ${{ matrix.cryptofuzz }}
|
||
EXTRA_LIB_CFLAGS: ${{ matrix.optflags }}
|
||
EXTRA_BIN_CFLAGS: ${{ matrix.optflags }}
|
||
shell: bash
|
||
run: |
|
||
# Compilation tests of all cases
|
||
#
|
||
make && cd src/arithmetic_tests/ && make clean && make bin && make clean && cd -;
|
||
cd src/examples/ && make clean && make && cd - && make clean;
|
||
make 16;
|
||
cd src/examples/ && make clean && make 16 && cd - && make clean;
|
||
make 32;
|
||
cd src/examples/ && make clean && make 32 && cd - && make clean;
|
||
make 64;
|
||
cd src/examples/ && make clean && make 64 && cd - && make clean;
|
||
# We perform one test with the sanitizers
|
||
USE_SANITIZERS=1 make;
|
||
cd src/examples/ && make clean && USE_SANITIZERS=1 make && cd - && make clean;
|
||
#
|
||
make debug;
|
||
cd src/examples/ && make clean && make debug && cd - && make clean;
|
||
make debug16;
|
||
cd src/examples/ && make clean && make debug16 && cd - && make clean;
|
||
make debug32;
|
||
cd src/examples/ && make clean && make debug32 && cd - && make clean;
|
||
make debug64;
|
||
cd src/examples/ && make clean && make debug64 && cd - && make clean;
|
||
continue-on-error: false
|