aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/libecc_runtime_tests.yml
blob: 2432511a1be033fc3fc42406de6b4734262dd5e1 (plain) (blame)
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
39
name: libecc

# Run this workflow every time a new commit pushed to your repository
on: push

jobs:
  runtime_tests:
    runs-on: ubuntu-22.04
    strategy:
      #max-parallel: 10
      matrix:
        cc: [gcc, clang]
        blinding: [1]
        cryptofuzz: [1]
        wordsize: [64, 32, 16]
    steps:
      # Checkout repository
      - name: checkout repository
        uses: actions/checkout@v2
      # Run actions
      # libecc runtime tests
      - name: libecc runtime tests
        env:
          CC: ${{ matrix.cc }}
          BLINDING: ${{ matrix.blinding }}
          CRYPTOFUZZ: ${{ matrix.cryptofuzz }}
          ASSERT_PRINT: 1
          # We want to parallelize self tests
          OPENMP_SELF_TESTS: 1
          WORDSIZE: ${{ matrix.wordsize }}
        shell: bash
        run: |
          # Install OpenMP
          sudo apt-get update;
          sudo apt-get -y install libomp-dev;
          # Vanilla tests
          #
          make "${WORDSIZE}" && ./build/ec_self_tests vectors rand;
        continue-on-error: false