Skip to content

Commit 41a4cab

Browse files
committed
next tes
1 parent db5ea37 commit 41a4cab

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

.github/workflows/linux-simple2.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Linux builds (basic)
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
name: ${{matrix.compiler.cxx}}, C++${{matrix.std}}, ${{matrix.build_type}}
8+
runs-on: ubuntu-22.04
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
compiler:
13+
- {cxx: g++-10, other_pkgs: g++-10}
14+
- {cxx: g++-11, other_pkgs: g++-11}
15+
- {cxx: clang++-11, other_pkgs: clang-11}
16+
- {cxx: clang++-12, other_pkgs: clang-12}
17+
- {cxx: clang++-13, other_pkgs: clang-13}
18+
- {cxx: clang++-14, other_pkgs: clang-14}
19+
build_type: [Debug, Release]
20+
std: [11, 14, 17, 20]
21+
#std: [11, 14, 17, 20]
22+
#exclude:
23+
# - compiler.cxx: "g++-{5,6,7,8,9,10}"
24+
# std: 17
25+
# - compiler.cxx: "g++-{5,6,7,8,9,10}"
26+
# std: 20
27+
# - compiler.cxx: "clang++-{6.0,7,8,9,10}"
28+
# std: 17
29+
# - compiler.cxx: "clang++-{6.0,7,8,9,10}"
30+
# std: 20
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
- name: Add repositories for older GCC
36+
run: |
37+
sudo apt-add-repository 'deb http://azure.archive.ubuntu.com/ubuntu/ bionic main'
38+
sudo apt-add-repository 'deb http://azure.archive.ubuntu.com/ubuntu/ bionic universe'
39+
if: ${{ matrix.compiler.cxx == 'g++-5' || matrix.compiler.cxx == 'g++-6' }}
40+
41+
- name: Prepare environment
42+
run: |
43+
sudo apt-get update
44+
sudo apt-get install -y ninja-build ${{matrix.compiler.other_pkgs}}
45+
46+
- name: Configure CMake
47+
env:
48+
CXX: ${{matrix.compiler.cxx}}
49+
run: |
50+
cmake -B build \
51+
-DCMAKE_BUILD_TYPE=${{matrix.built_type}} \
52+
-DCMAKE_CXX_STANDARD=${{matrix.std}} \
53+
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
54+
-DCMAKE_CXX_EXTENSIONS=OFF \
55+
-DRAPIDFUZZ_BUILD_TESTING=1 \
56+
-DRAPIDFUZZ_ENABLE_LINTERS=1 \
57+
-DRAPIDFUZZ_BUILD_FUZZERS=1 \
58+
-G Ninja
59+
60+
- name: Build
61+
working-directory: build
62+
run: ninja
63+
64+
- name: Test
65+
working-directory: build
66+
run: ctest -C ${{matrix.BUILD_TYPE}} --rerun-failed --output-on-failure -j `nproc`
67+
68+
- name: Fuzz Test
69+
working-directory: build
70+
run: |
71+
fuzzing/fuzz_lcs_similarity -max_total_time=30
72+
fuzzing/fuzz_levenshtein_distance -max_total_time=30
73+
fuzzing/fuzz_levenshtein_editops -max_total_time=30
74+
fuzzing/fuzz_indel_distance -max_total_time=30
75+
fuzzing/fuzz_indel_editops -max_total_time=30
76+
fuzzing/fuzz_osa_distance -max_total_time=30
77+
fuzzing/fuzz_damerau_levenshtein_distance -max_total_time=30"""
78+

0 commit comments

Comments
 (0)