aboutsummaryrefslogtreecommitdiff
path: root/crypto/libecc/.github/workflows/libecc_meson_build.yml
blob: e942ae9c2470e89d5e0a614c5e9dfc8757dbfe4d (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
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 using meson
      - name: libecc meson compilation tests
        shell: bash
        run: |
          sudo apt-get update;
          sudo apt-get -y install python3-pip;
          pip install meson;
          pip install ninja;
          pip install dunamai;
          # Compilation tests of all cases
          #
          rm -rf builddir/ && meson setup -Dwith_wordsize=16 builddir && cd builddir && meson dist && cd -;
          rm -rf builddir/ && meson setup -Dwith_wordsize=32 builddir && cd builddir && meson dist && cd -;
          rm -rf builddir/ && meson setup -Dwith_wordsize=64 builddir && cd builddir && meson dist && cd -;
        continue-on-error: false