1*f0865ec9SKyle Evansname: libecc 2*f0865ec9SKyle Evans 3*f0865ec9SKyle Evans# Run this workflow every time a new commit pushed to your repository 4*f0865ec9SKyle Evanson: push 5*f0865ec9SKyle Evans 6*f0865ec9SKyle Evansjobs: 7*f0865ec9SKyle Evans runtime_tests: 8*f0865ec9SKyle Evans runs-on: ubuntu-22.04 9*f0865ec9SKyle Evans strategy: 10*f0865ec9SKyle Evans #max-parallel: 10 11*f0865ec9SKyle Evans matrix: 12*f0865ec9SKyle Evans cc: [gcc, clang] 13*f0865ec9SKyle Evans blinding: [0, 1] 14*f0865ec9SKyle Evans cryptofuzz: [1] 15*f0865ec9SKyle Evans steps: 16*f0865ec9SKyle Evans # Checkout repository 17*f0865ec9SKyle Evans - name: checkout repository 18*f0865ec9SKyle Evans uses: actions/checkout@v2 19*f0865ec9SKyle Evans # Run actions 20*f0865ec9SKyle Evans # libecc python tests 21*f0865ec9SKyle Evans - name: libecc python tests 22*f0865ec9SKyle Evans env: 23*f0865ec9SKyle Evans CC: ${{ matrix.cc }} 24*f0865ec9SKyle Evans BLINDING: ${{ matrix.blinding }} 25*f0865ec9SKyle Evans CRYPTOFUZZ: ${{ matrix.cryptofuzz }} 26*f0865ec9SKyle Evans ASSERT_PRINT: 1 27*f0865ec9SKyle Evans # We want to parallelize self tests 28*f0865ec9SKyle Evans OPENMP_SELF_TESTS: 1 29*f0865ec9SKyle Evans shell: bash 30*f0865ec9SKyle Evans run: | 31*f0865ec9SKyle Evans # Install Python2 and OpenMP 32*f0865ec9SKyle Evans sudo apt-get update; 33*f0865ec9SKyle Evans sudo apt-get -y install python2 libomp-dev; 34*f0865ec9SKyle Evans # Test our Python libecc expanding script 35*f0865ec9SKyle Evans # Python3 36*f0865ec9SKyle Evans echo "y" | python3 scripts/expand_libecc.py --remove-all && PYTHON=python3 sh scripts/gen_curves_tests.sh && make clean && make && ./build/ec_self_tests vectors rand; 37*f0865ec9SKyle Evans # Clean 38*f0865ec9SKyle Evans echo "y" | python3 scripts/expand_libecc.py --remove-all && make clean; 39*f0865ec9SKyle Evans # Python2 40*f0865ec9SKyle Evans echo "y" | python2 scripts/expand_libecc.py --remove-all && PYTHON=python2 sh scripts/gen_curves_tests.sh && make clean && make && ./build/ec_self_tests vectors rand; 41*f0865ec9SKyle Evans # Clean 42*f0865ec9SKyle Evans echo "y" | python2 scripts/expand_libecc.py --remove-all && make clean; 43*f0865ec9SKyle Evans continue-on-error: false 44