Skip to content

Merge to master for v1.6.0 #313

Merge to master for v1.6.0

Merge to master for v1.6.0 #313

Workflow file for this run

# ------------------------------------------------------------------------------
# Copyright Matt Borland 2025.
# Copyright Christopher Kormanyos 2025.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
# ------------------------------------------------------------------------------
name: fuzz
on:
push:
branches:
- master
- develop
- feature/**
pull_request:
types: [opened, synchronize, reopened]
jobs:
clang-fuzzing-versus-wide-integer:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
compiler: [ clang++ ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: update-tools
run: sudo apt install llvm lld
- name: clone-wide-integer
working-directory: ${{runner.workspace}}
run: |
git clone -b master --depth 1 https://github.com/ckormanyos/wide-integer.git ${{runner.workspace}}/wide-integer
- name: clang-fuzzing-versus-wide-integer
run: |
${{ matrix.compiler }} -v
echo 'compiling test/fuzzing/test_fuzzing_div_versus_wide_int.cpp'
${{ matrix.compiler }} -std=c++20 -g -O2 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -fsanitize=fuzzer -I./include -I${{runner.workspace}}/wide-integer test/fuzzing/test_fuzzing_div_versus_wide_int.cpp -o test_fuzzing_div_versus_wide_int
echo "run test_fuzzing_div_versus_wide_int"
./test_fuzzing_div_versus_wide_int -max_total_time=900 -max_len=32 -verbosity=0 -close_fd_mask=3
clang-fuzzing-versus-wide-integer-no-builtin:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
compiler: [ clang++ ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: update-tools
run: sudo apt install llvm lld
- name: clone-wide-integer
working-directory: ${{runner.workspace}}
run: |
git clone -b master --depth 1 https://github.com/ckormanyos/wide-integer.git ${{runner.workspace}}/wide-integer
- name: clang-fuzzing-versus-wide-integer
run: |
${{ matrix.compiler }} -v
echo 'compiling test/fuzzing/test_fuzzing_div_versus_wide_int.cpp'
${{ matrix.compiler }} -std=c++20 -g -O2 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -fsanitize=fuzzer -I./include -I${{runner.workspace}}/wide-integer -DBOOST_INT128_NO_BUILTIN_INT128=1 test/fuzzing/test_fuzzing_div_versus_wide_int.cpp -o test_fuzzing_div_versus_wide_int
echo "run test_fuzzing_div_versus_wide_int"
./test_fuzzing_div_versus_wide_int -max_total_time=900 -max_len=32 -verbosity=0 -close_fd_mask=3