xref: /freebsd/crypto/libecc/.github/workflows/libecc_meson_build.yml (revision f0865ec9906d5a18fa2a3b61381f22ce16e606ad)
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  compilation_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, g++, clang++]
13*f0865ec9SKyle Evans        blinding: [0, 1]
14*f0865ec9SKyle Evans        complete: [0, 1]
15*f0865ec9SKyle Evans        ladder: [0, 1]
16*f0865ec9SKyle Evans        cryptofuzz: [0, 1]
17*f0865ec9SKyle Evans        optflags: ["-O3", "-O2", "-O1"]
18*f0865ec9SKyle Evans    steps:
19*f0865ec9SKyle Evans      # Checkout repository
20*f0865ec9SKyle Evans      - name: checkout repository
21*f0865ec9SKyle Evans        uses: actions/checkout@v2
22*f0865ec9SKyle Evans      # Run actions
23*f0865ec9SKyle Evans      # libecc compilation tests using meson
24*f0865ec9SKyle Evans      - name: libecc meson compilation tests
25*f0865ec9SKyle Evans        shell: bash
26*f0865ec9SKyle Evans        run: |
27*f0865ec9SKyle Evans          sudo apt-get update;
28*f0865ec9SKyle Evans          sudo apt-get -y install python3-pip;
29*f0865ec9SKyle Evans          pip install meson;
30*f0865ec9SKyle Evans          pip install ninja;
31*f0865ec9SKyle Evans          pip install dunamai;
32*f0865ec9SKyle Evans          # Compilation tests of all cases
33*f0865ec9SKyle Evans          #
34*f0865ec9SKyle Evans          rm -rf builddir/ && meson setup -Dwith_wordsize=16 builddir && cd builddir && meson dist && cd -;
35*f0865ec9SKyle Evans          rm -rf builddir/ && meson setup -Dwith_wordsize=32 builddir && cd builddir && meson dist && cd -;
36*f0865ec9SKyle Evans          rm -rf builddir/ && meson setup -Dwith_wordsize=64 builddir && cd builddir && meson dist && cd -;
37*f0865ec9SKyle Evans        continue-on-error: false
38