chore: remove workflows
This commit is contained in:
19
.github/workflows/checks-daily.yml
vendored
19
.github/workflows/checks-daily.yml
vendored
@@ -1,19 +0,0 @@
|
|||||||
name: Daily workflow for various checks
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * *' # This cron expression means "run at midnight UTC every day"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
checks:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt -y update && sudo apt -y install gcc cmake libgmp-dev scala
|
|
||||||
|
|
||||||
- name: Check namespace
|
|
||||||
run: scripts/check_namespace.sh
|
|
||||||
180
.github/workflows/cmake.yml
vendored
180
.github/workflows/cmake.yml
vendored
@@ -1,180 +0,0 @@
|
|||||||
name: CMake
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: ["**"]
|
|
||||||
# pull_request:
|
|
||||||
# branches: [ "main" ]
|
|
||||||
|
|
||||||
env:
|
|
||||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
|
||||||
BUILD_TYPE: Debug
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
platform: [x64, arm64]
|
|
||||||
toolchain: [""]
|
|
||||||
sqisign_build_type: [ref]
|
|
||||||
sqisign_test_reps: [10]
|
|
||||||
gf_radix: [AUTO, 32]
|
|
||||||
enable_sign: [ON]
|
|
||||||
gmp_library: [SYSTEM]
|
|
||||||
include:
|
|
||||||
- platform: x64
|
|
||||||
toolchain: ""
|
|
||||||
sqisign_build_type: broadwell
|
|
||||||
sqisign_test_reps: 10
|
|
||||||
gf_radix: AUTO
|
|
||||||
enable_sign: ON
|
|
||||||
gmp_library: SYSTEM
|
|
||||||
- platform: x64
|
|
||||||
toolchain: .cmake/32bit.cmake
|
|
||||||
sqisign_build_type: ref
|
|
||||||
sqisign_test_reps: 10
|
|
||||||
gf_radix: 32
|
|
||||||
enable_sign: ON
|
|
||||||
gmp_library: BUILD # Redundant, as it's set in .cmake/32bit.cmake
|
|
||||||
- platform: x64
|
|
||||||
toolchain: ""
|
|
||||||
sqisign_build_type: ref
|
|
||||||
sqisign_test_reps: 10
|
|
||||||
gf_radix: AUTO
|
|
||||||
enable_sign: OFF
|
|
||||||
gmp_library: SYSTEM
|
|
||||||
- platform: x64
|
|
||||||
toolchain: ""
|
|
||||||
sqisign_build_type: ref
|
|
||||||
sqisign_test_reps: 10
|
|
||||||
gf_radix: AUTO
|
|
||||||
enable_sign: ON
|
|
||||||
gmp_library: MINI
|
|
||||||
|
|
||||||
runs-on: [self-hosted, "${{ matrix.platform }}"]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
## - name: Install dependencies Valgrind, GMP, Doxygen, TeX, gcc-multilib
|
|
||||||
## run: |
|
|
||||||
## sudo apt update && sudo apt --fix-missing install valgrind libgmp-dev doxygen texlive-xetex gcc-multilib
|
|
||||||
|
|
||||||
- name: Set up environment for ccache
|
|
||||||
run: echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Configure CMake
|
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
|
||||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DSQISIGN_BUILD_TYPE=${{ matrix.sqisign_build_type }} -DSQISIGN_TEST_REPS=${{ matrix.sqisign_test_reps }} -DGF_RADIX=${{ matrix.gf_radix }} -DENABLE_SIGN=${{ matrix.enable_sign }} -DGMP_LIBRARY=${{ matrix.gmp_library }} ${{ matrix.toolchain && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.toolchain) || '' }} -G Ninja
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
# Build your program with the given configuration
|
|
||||||
run: |
|
|
||||||
if [ -n "${{ matrix.toolchain }}" ]; then
|
|
||||||
cp ~/gmp-6.3.0.tar.xz ${{github.workspace}}/build/libgmp/src
|
|
||||||
fi
|
|
||||||
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
|
||||||
|
|
||||||
- name: Build documentation
|
|
||||||
# Create html and latex documentation, TODO: do we need different docs for ref and opt?
|
|
||||||
if: ${{ ((matrix.gf_radix != 32) && (matrix.enable_sign == 'ON') && (matrix.gmp_library == 'SYSTEM')) }}
|
|
||||||
run: doxygen Doxyfile && cd latex && xelatex refman
|
|
||||||
|
|
||||||
- name: Upload latex documentation
|
|
||||||
if: ${{ ((matrix.gf_radix != 32) && (matrix.enable_sign == 'ON') && (matrix.gmp_library == 'SYSTEM')) }}
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: docs-${{ matrix.platform }}-${{ matrix.sqisign_build_type }}
|
|
||||||
path: latex/refman.pdf
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{github.workspace}}/build
|
|
||||||
# Execute tests defined by the CMake configuration.
|
|
||||||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
|
||||||
run: ctest -j4 -C ${{env.BUILD_TYPE}} -E "KAT$"
|
|
||||||
|
|
||||||
- name: Examples
|
|
||||||
working-directory: ${{github.workspace}}/build/apps
|
|
||||||
run: |
|
|
||||||
./example_nistapi_lvl1
|
|
||||||
./example_nistapi_lvl3
|
|
||||||
./example_nistapi_lvl5
|
|
||||||
if: ${{ matrix.enable_sign == 'ON' }}
|
|
||||||
|
|
||||||
- name: Release build & test
|
|
||||||
run: |
|
|
||||||
rm -rf build
|
|
||||||
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -DSQISIGN_BUILD_TYPE=${{ matrix.sqisign_build_type }} -DCMAKE_C_COMPILER=clang -DSQISIGN_TEST_REPS=1 -DGF_RADIX=${{ matrix.gf_radix }} -DENABLE_SIGN=${{ matrix.enable_sign }} -DGMP_LIBRARY=${{ matrix.gmp_library }} ${{ matrix.toolchain && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.toolchain) || '' }} -G Ninja
|
|
||||||
if [ -n "${{ matrix.toolchain }}" ]; then
|
|
||||||
cp ~/gmp-6.3.0.tar.xz ${{github.workspace}}/build/libgmp/src
|
|
||||||
fi
|
|
||||||
cmake --build build
|
|
||||||
CTEST_OUTPUT_ON_FAILURE=1 ctest -j4 -V --test-dir build -E "KAT$"
|
|
||||||
|
|
||||||
- name: Memcheck
|
|
||||||
run: |
|
|
||||||
rm -rf build
|
|
||||||
cmake -Bbuild -DSQISIGN_TEST_REPS=1 -DSQISIGN_BUILD_TYPE=${{ matrix.sqisign_build_type }} -DSQISIGN_TEST_REPS=1 -DGF_RADIX=${{ matrix.gf_radix }} -DENABLE_SIGN=${{ matrix.enable_sign }} -DGMP_LIBRARY=${{ matrix.gmp_library }} ${{ matrix.toolchain && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.toolchain) || '' }} -G Ninja
|
|
||||||
if [ -n "${{ matrix.toolchain }}" ]; then
|
|
||||||
cp ~/gmp-6.3.0.tar.xz ${{github.workspace}}/build/libgmp/src
|
|
||||||
fi
|
|
||||||
cmake --build build
|
|
||||||
valgrind --error-exitcode=1 --max-stackframe=4116160 ./build/test/sqisign_test_scheme_lvl3
|
|
||||||
valgrind --error-exitcode=1 --max-stackframe=4116160 ./build/test/sqisign_test_scheme_lvl1
|
|
||||||
valgrind --error-exitcode=1 --max-stackframe=4116160 ./build/test/sqisign_test_scheme_lvl5
|
|
||||||
if: ${{ matrix.toolchain == '' && matrix.platform == 'arm64' && matrix.gf_radix == 'AUTO' }}
|
|
||||||
|
|
||||||
- name: Build shared libraries
|
|
||||||
run: |
|
|
||||||
rm -rf build
|
|
||||||
cmake -Bbuild -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DSQISIGN_BUILD_TYPE=${{ matrix.sqisign_build_type }} -DGF_RADIX=${{ matrix.gf_radix }} -DENABLE_SIGN=${{ matrix.enable_sign }} -DGMP_LIBRARY=${{ matrix.gmp_library }} -DCMAKE_C_COMPILER=clang ${{ matrix.toolchain && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.toolchain) || '' }} -G Ninja
|
|
||||||
if [ -n "${{ matrix.toolchain }}" ]; then
|
|
||||||
cp ~/gmp-6.3.0.tar.xz ${{github.workspace}}/build/libgmp/src
|
|
||||||
fi
|
|
||||||
cmake --build build
|
|
||||||
find . -name '*.so' | grep so
|
|
||||||
CTEST_OUTPUT_ON_FAILURE=1 ctest -j4 -V --test-dir build -E "KAT$"
|
|
||||||
|
|
||||||
- name: Address Sanitizer ASAN
|
|
||||||
run: |
|
|
||||||
rm -rf build
|
|
||||||
cmake -Bbuild -DCMAKE_BUILD_TYPE=ASAN -DSQISIGN_BUILD_TYPE=${{ matrix.sqisign_build_type }} -DCMAKE_C_COMPILER=clang -DSQISIGN_TEST_REPS=1 -DGF_RADIX=${{ matrix.gf_radix }} -DENABLE_SIGN=${{ matrix.enable_sign }} -DGMP_LIBRARY=${{ matrix.gmp_library }} ${{ matrix.toolchain && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.toolchain) || '' }} -G Ninja
|
|
||||||
if [ -n "${{ matrix.toolchain }}" ]; then
|
|
||||||
cp ~/gmp-6.3.0.tar.xz ${{github.workspace}}/build/libgmp/src
|
|
||||||
fi
|
|
||||||
cmake --build build
|
|
||||||
CTEST_OUTPUT_ON_FAILURE=1 ctest -j4 -V --test-dir build -E "KAT$"
|
|
||||||
|
|
||||||
# MSAN needs instrumented gmp
|
|
||||||
- name: Memory Sanitizer MSAN
|
|
||||||
run: |
|
|
||||||
rm -rf build
|
|
||||||
cmake -Bbuild -DCMAKE_BUILD_TYPE=MSAN -DSQISIGN_BUILD_TYPE=${{ matrix.sqisign_build_type }} -DCMAKE_C_COMPILER=clang -DSQISIGN_TEST_REPS=1 -DGF_RADIX=${{ matrix.gf_radix }} -DENABLE_SIGN=${{ matrix.enable_sign }} -DGMP_LIBRARY=${{ matrix.gmp_library }} ${{ matrix.toolchain && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.toolchain) || '' }} -G Ninja
|
|
||||||
if [ -n "${{ matrix.toolchain }}" ]; then
|
|
||||||
cp ~/gmp-6.3.0.tar.xz ${{github.workspace}}/build/libgmp/src
|
|
||||||
fi
|
|
||||||
cmake --build build
|
|
||||||
CTEST_OUTPUT_ON_FAILURE=1 ctest -j4 -V --test-dir build -E "KAT$"
|
|
||||||
if: ${{ matrix.gmp_library == 'MINI' }}
|
|
||||||
|
|
||||||
- name: Leak Sanitizer LSAN
|
|
||||||
run: |
|
|
||||||
rm -rf build
|
|
||||||
cmake -Bbuild -DCMAKE_BUILD_TYPE=LSAN -DSQISIGN_BUILD_TYPE=${{ matrix.sqisign_build_type }} -DCMAKE_C_COMPILER=clang -DSQISIGN_TEST_REPS=1 -DGF_RADIX=${{ matrix.gf_radix }} -DENABLE_SIGN=${{ matrix.enable_sign }} -DGMP_LIBRARY=${{ matrix.gmp_library }} ${{ matrix.toolchain && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.toolchain) || '' }} -G Ninja
|
|
||||||
if [ -n "${{ matrix.toolchain }}" ]; then
|
|
||||||
cp ~/gmp-6.3.0.tar.xz ${{github.workspace}}/build/libgmp/src
|
|
||||||
fi
|
|
||||||
cmake --build build
|
|
||||||
CTEST_OUTPUT_ON_FAILURE=1 ctest -j4 -V --test-dir build -E "KAT$"
|
|
||||||
|
|
||||||
- name: Undefined Behavior Sanitizer UBSAN
|
|
||||||
run: |
|
|
||||||
rm -rf build
|
|
||||||
cmake -Bbuild -DCMAKE_BUILD_TYPE=UBSAN -DSQISIGN_BUILD_TYPE=${{ matrix.sqisign_build_type }} -DCMAKE_C_COMPILER=clang -DSQISIGN_TEST_REPS=1 -DGF_RADIX=${{ matrix.gf_radix }} -DENABLE_SIGN=${{ matrix.enable_sign }} -DGMP_LIBRARY=${{ matrix.gmp_library }} ${{ matrix.toolchain && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.toolchain) || '' }} -G Ninja
|
|
||||||
if [ -n "${{ matrix.toolchain }}" ]; then
|
|
||||||
cp ~/gmp-6.3.0.tar.xz ${{github.workspace}}/build/libgmp/src
|
|
||||||
fi
|
|
||||||
cmake --build build
|
|
||||||
CTEST_OUTPUT_ON_FAILURE=1 ctest -j4 -V --test-dir build -E "KAT$"
|
|
||||||
54
.github/workflows/daily.yml
vendored
54
.github/workflows/daily.yml
vendored
@@ -1,54 +0,0 @@
|
|||||||
name: Benchmarks (Daily Workflow)
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * *' # This cron expression means "run at midnight UTC every day"
|
|
||||||
|
|
||||||
env:
|
|
||||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
|
||||||
BUILD_TYPE: Release
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
benchmarks:
|
|
||||||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
platform: [x64, arm64]
|
|
||||||
toolchain: [""]
|
|
||||||
sqisign_build_type: [ref]
|
|
||||||
include:
|
|
||||||
- platform: x64
|
|
||||||
toolchain: ""
|
|
||||||
sqisign_build_type: broadwell
|
|
||||||
sqisign_test_reps: 10
|
|
||||||
- platform: x64
|
|
||||||
toolchain: .cmake/32bit.cmake
|
|
||||||
sqisign_build_type: ref
|
|
||||||
sqisign_test_reps: 10
|
|
||||||
|
|
||||||
runs-on: [self-hosted, "${{ matrix.platform }}"]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Configure CMake
|
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
|
||||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DSQISIGN_BUILD_TYPE=${{ matrix.sqisign_build_type }} ${{ matrix.toolchain && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.toolchain) || '' }}
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
# Build your program with the given configuration
|
|
||||||
run: |
|
|
||||||
if [ -n "${{ matrix.toolchain }}" ]; then
|
|
||||||
cp ~/gmp-6.3.0.tar.xz ${{github.workspace}}/build/libgmp/src
|
|
||||||
fi
|
|
||||||
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
|
||||||
|
|
||||||
- name: Run benchmarks in apps folder
|
|
||||||
run: |
|
|
||||||
build/apps/benchmark_lvl1 50
|
|
||||||
build/apps/benchmark_lvl3 20
|
|
||||||
build/apps/benchmark_lvl5 10
|
|
||||||
|
|
||||||
- name: Run Benchmarks (make bm)
|
|
||||||
run: cd build && make bm
|
|
||||||
60
.github/workflows/daily_trigger.yml
vendored
60
.github/workflows/daily_trigger.yml
vendored
@@ -1,60 +0,0 @@
|
|||||||
name: Benchmarks (Daily Workflow, manual trigger)
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
commit_sha:
|
|
||||||
description: 'The commit SHA to run the workflow on'
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
|
|
||||||
env:
|
|
||||||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
|
||||||
BUILD_TYPE: Release
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
benchmarks:
|
|
||||||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
platform: [x64, arm64]
|
|
||||||
toolchain: [""]
|
|
||||||
sqisign_build_type: [ref]
|
|
||||||
include:
|
|
||||||
- platform: x64
|
|
||||||
toolchain: ""
|
|
||||||
sqisign_build_type: broadwell
|
|
||||||
sqisign_test_reps: 10
|
|
||||||
- platform: x64
|
|
||||||
toolchain: .cmake/32bit.cmake
|
|
||||||
sqisign_build_type: ref
|
|
||||||
sqisign_test_reps: 10
|
|
||||||
|
|
||||||
runs-on: [self-hosted, "${{ matrix.platform }}"]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.event.inputs.commit_sha }}
|
|
||||||
|
|
||||||
- name: Configure CMake
|
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
|
||||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DSQISIGN_BUILD_TYPE=${{ matrix.sqisign_build_type }} ${{ matrix.toolchain && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.toolchain) || '' }}
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
# Build your program with the given configuration
|
|
||||||
run: |
|
|
||||||
if [ -n "${{ matrix.toolchain }}" ]; then
|
|
||||||
cp ~/gmp-6.3.0.tar.xz ${{github.workspace}}/build/libgmp/src
|
|
||||||
fi
|
|
||||||
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
|
||||||
|
|
||||||
- name: Run benchmarks in apps folder
|
|
||||||
run: |
|
|
||||||
build/apps/benchmark_lvl1 50
|
|
||||||
build/apps/benchmark_lvl3 20
|
|
||||||
build/apps/benchmark_lvl5 10
|
|
||||||
|
|
||||||
- name: Run Benchmarks (make bm)
|
|
||||||
run: cd build && make bm
|
|
||||||
189
.github/workflows/kat.yml
vendored
189
.github/workflows/kat.yml
vendored
@@ -1,189 +0,0 @@
|
|||||||
name: Known Answer Tests (KAT)
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
commit_sha:
|
|
||||||
description: 'The commit SHA to run the workflow on'
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
x86-KAT:
|
|
||||||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
compiler: [gcc]
|
|
||||||
build_type: [Release]
|
|
||||||
platform: [x64]
|
|
||||||
#fast_math: [-ffast-math, -fno-fast-math]
|
|
||||||
#fp_contract: [-ffp-contract=on, -ffp-contract=fast, -ffp-contract=off]
|
|
||||||
fast_math: [""]
|
|
||||||
fp_contract: [""]
|
|
||||||
toolchain: ["", ".cmake/32bit.cmake"]
|
|
||||||
sqisign_build_type: [ref]
|
|
||||||
gf_radix: [AUTO, 32]
|
|
||||||
gmp_library: [SYSTEM, MINI]
|
|
||||||
|
|
||||||
runs-on: [self-hosted, "${{ matrix.platform }}"]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: ${{ github.event.inputs.commit_sha }}
|
|
||||||
|
|
||||||
## - name: Install dependencies Valgrind, GMP, Doxygen, TeX, gcc-multilib
|
|
||||||
## run: |
|
|
||||||
## sudo apt update && sudo apt --fix-missing install valgrind libgmp-dev doxygen texlive-xetex gcc-multilib
|
|
||||||
|
|
||||||
- name: Configure CMake
|
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
|
||||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_C_COMPILER=${{matrix.compiler}} -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DSQISIGN_BUILD_TYPE=${{ matrix.sqisign_build_type }} -DGF_RADIX=${{ matrix.gf_radix }} -DGMP_LIBRARY=${{ matrix.gmp_library }} ${{ matrix.toolchain && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.toolchain) || '' }} -DCMAKE_C_FLAGS="${{ matrix.fast_math }} ${{ matrix.fp_contract }}"
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
# Build your program with the given configuration
|
|
||||||
run: |
|
|
||||||
if [ -n "${{ matrix.toolchain }}" ]; then
|
|
||||||
cp ~/gmp-6.3.0.tar.xz ${{github.workspace}}/build/libgmp/src
|
|
||||||
fi
|
|
||||||
cmake --build ${{github.workspace}}/build --parallel 8 --config ${{matrix.build_type}}
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{github.workspace}}/build
|
|
||||||
# Execute tests defined by the CMake configuration.
|
|
||||||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
|
||||||
run: ctest -R KAT$ -j3 -C ${{matrix.build_type}}
|
|
||||||
|
|
||||||
broadwell-KAT:
|
|
||||||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
compiler: [clang, gcc]
|
|
||||||
build_type: [Release]
|
|
||||||
platform: [x64]
|
|
||||||
#fast_math: [ON, OFF]
|
|
||||||
#fp_contract: [ON, FAST, OFF]
|
|
||||||
fast_math: [""]
|
|
||||||
fp_contract: [""]
|
|
||||||
toolchain: [""]
|
|
||||||
sqisign_build_type: [broadwell]
|
|
||||||
gf_radix: [AUTO]
|
|
||||||
gmp_library: [SYSTEM, MINI]
|
|
||||||
|
|
||||||
runs-on: [self-hosted, "${{ matrix.platform }}"]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
## - name: Install dependencies Valgrind, GMP, Doxygen, TeX, gcc-multilib
|
|
||||||
## run: |
|
|
||||||
## sudo apt update && sudo apt --fix-missing install valgrind libgmp-dev doxygen texlive-xetex gcc-multilib
|
|
||||||
|
|
||||||
- name: Configure CMake
|
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
|
||||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_C_COMPILER=${{matrix.compiler}} -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DSQISIGN_BUILD_TYPE=${{ matrix.sqisign_build_type }} -DGF_RADIX=${{ matrix.gf_radix }} -DGMP_LIBRARY=${{ matrix.gmp_library }} ${{ matrix.toolchain && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.toolchain) || '' }} -DCMAKE_C_FLAGS="${{ matrix.fast_math }} ${{ matrix.fp_contract }}"
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
# Build your program with the given configuration
|
|
||||||
run: |
|
|
||||||
if [ -n "${{ matrix.toolchain }}" ]; then
|
|
||||||
cp ~/gmp-6.3.0.tar.xz ${{github.workspace}}/build/libgmp/src
|
|
||||||
fi
|
|
||||||
cmake --build ${{github.workspace}}/build --parallel 8 --config ${{matrix.build_type}}
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{github.workspace}}/build
|
|
||||||
# Execute tests defined by the CMake configuration.
|
|
||||||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
|
||||||
run: ctest -R KAT$ -j3 -C ${{matrix.build_type}}
|
|
||||||
|
|
||||||
arm64-KAT:
|
|
||||||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
compiler: [clang, gcc]
|
|
||||||
build_type: [Release]
|
|
||||||
platform: [arm64]
|
|
||||||
#fast_math: [ON, OFF]
|
|
||||||
#fp_contract: [ON, FAST, OFF]
|
|
||||||
fast_math: [""]
|
|
||||||
fp_contract: [""]
|
|
||||||
toolchain: [""]
|
|
||||||
sqisign_build_type: [ref]
|
|
||||||
gf_radix: [AUTO]
|
|
||||||
gmp_library: [SYSTEM, MINI]
|
|
||||||
|
|
||||||
runs-on: [self-hosted, "${{ matrix.platform }}"]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
## - name: Install dependencies Valgrind, GMP, Doxygen, TeX, gcc-multilib
|
|
||||||
## run: |
|
|
||||||
## sudo apt update && sudo apt --fix-missing install valgrind libgmp-dev doxygen texlive-xetex gcc-multilib
|
|
||||||
|
|
||||||
- name: Configure CMake
|
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
|
||||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_C_COMPILER=${{matrix.compiler}} -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DSQISIGN_BUILD_TYPE=${{ matrix.sqisign_build_type }} -DGF_RADIX=${{ matrix.gf_radix }} -DGMP_LIBRARY=${{ matrix.gmp_library }} ${{ matrix.toolchain && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.toolchain) || '' }} -DCMAKE_C_FLAGS="${{ matrix.fast_math }} ${{ matrix.fp_contract }}"
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
# Build your program with the given configuration
|
|
||||||
run: |
|
|
||||||
if [ -n "${{ matrix.toolchain }}" ]; then
|
|
||||||
cp ~/gmp-6.3.0.tar.xz ${{github.workspace}}/build/libgmp/src
|
|
||||||
fi
|
|
||||||
cmake --build ${{github.workspace}}/build --parallel 8 --config ${{matrix.build_type}}
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{github.workspace}}/build
|
|
||||||
# Execute tests defined by the CMake configuration.
|
|
||||||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
|
||||||
run: ctest -R KAT$ -j3 -C ${{matrix.build_type}}
|
|
||||||
|
|
||||||
DebugKAT:
|
|
||||||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
compiler: [clang, gcc]
|
|
||||||
build_type: [Debug]
|
|
||||||
platform: [x64]
|
|
||||||
#fast_math: [OFF]
|
|
||||||
#fp_contract: [FAST]
|
|
||||||
fast_math: [""]
|
|
||||||
fp_contract: [""]
|
|
||||||
toolchain: [""]
|
|
||||||
sqisign_build_type: [ref, broadwell]
|
|
||||||
gf_radix: [AUTO]
|
|
||||||
gmp_library: [SYSTEM]
|
|
||||||
|
|
||||||
runs-on: [self-hosted, "${{ matrix.platform }}"]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
## - name: Install dependencies Valgrind, GMP, Doxygen, TeX, gcc-multilib
|
|
||||||
## run: |
|
|
||||||
## sudo apt update && sudo apt --fix-missing install valgrind libgmp-dev doxygen texlive-xetex gcc-multilib
|
|
||||||
|
|
||||||
- name: Configure CMake
|
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
|
||||||
run: cmake -B ${{github.workspace}}/build -DCMAKE_C_COMPILER=${{matrix.compiler}} -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DSQISIGN_BUILD_TYPE=${{ matrix.sqisign_build_type }} -DGF_RADIX=${{ matrix.gf_radix }} -DGMP_LIBRARY=${{ matrix.gmp_library }} ${{ matrix.toolchain && format('-DCMAKE_TOOLCHAIN_FILE={0}', matrix.toolchain) || '' }} -DCMAKE_C_FLAGS="${{ matrix.fast_math }} ${{ matrix.fp_contract }}"
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
# Build your program with the given configuration
|
|
||||||
run: |
|
|
||||||
if [ -n "${{ matrix.toolchain }}" ]; then
|
|
||||||
cp ~/gmp-6.3.0.tar.xz ${{github.workspace}}/build/libgmp/src
|
|
||||||
fi
|
|
||||||
cmake --build ${{github.workspace}}/build --parallel 8 --config ${{matrix.build_type}}
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
working-directory: ${{github.workspace}}/build
|
|
||||||
# Execute tests defined by the CMake configuration.
|
|
||||||
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
|
|
||||||
run: ctest -R KAT$ -j3 -C ${{matrix.build_type}}
|
|
||||||
|
|
||||||
33
.github/workflows/s390-daily.yml
vendored
33
.github/workflows/s390-daily.yml
vendored
@@ -1,33 +0,0 @@
|
|||||||
name: Big-endian s390x test (Daily Workflow)
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: '0 0 * * *' # This cron expression means "run at midnight UTC every day"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
s390-be:
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
BUILD_TYPE: [Debug, Release]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Setup multiarch/qemu-user-static
|
|
||||||
run: |
|
|
||||||
docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
|
||||||
- name: Run build and tests in s390x container
|
|
||||||
run: |
|
|
||||||
docker run --rm -v ${{ github.workspace }}:/workspace multiarch/ubuntu-core:s390x-focal bash -c "
|
|
||||||
set -x &&
|
|
||||||
cd /workspace &&
|
|
||||||
ls -l . &&
|
|
||||||
uname -a &&
|
|
||||||
lscpu | grep Endian &&
|
|
||||||
apt -y update &&
|
|
||||||
apt -y install cmake gcc libgmp-dev &&
|
|
||||||
cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} -DSQISIGN_BUILD_TYPE=ref &&
|
|
||||||
cmake --build build --config ${{ matrix.BUILD_TYPE }} &&
|
|
||||||
cd /workspace/build &&
|
|
||||||
ctest -j4 -C ${{ matrix.BUILD_TYPE }}
|
|
||||||
"
|
|
||||||
Reference in New Issue
Block a user