Skip to content

Commit 13a933e

Browse files
authored
ci: add dev build to serve as canary (#339)
Hopefully to fail earlier and including some non standard options
1 parent b88126f commit 13a933e

File tree

3 files changed

+34
-3
lines changed

3 files changed

+34
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
run: ./autogen.sh
1515

1616
- name: Configure
17-
run: ./configure CPPFLAGS='-Wall -Wextra' --enable-jit --enable-pcre2-8 --enable-pcre2-16 --enable-pcre2-32
17+
run: ./configure CPPFLAGS='-Wall -Wextra' --enable-jit --enable-pcre2-16 --enable-pcre2-32
1818

1919
- name: Build
2020
run: make
@@ -43,7 +43,7 @@ jobs:
4343
run: ./autogen.sh
4444

4545
- name: Configure
46-
run: ./configure CPPFLAGS='-Wall -Wextra' --enable-jit --enable-pcre2-8 --enable-pcre2-16 --enable-pcre2-32
46+
run: ./configure CPPFLAGS='-Wall -Wextra' --enable-jit --enable-pcre2-16 --enable-pcre2-32
4747

4848
- name: Build
4949
run: make

.github/workflows/dev.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Dev
2+
on: [push, pull_request]
3+
4+
jobs:
5+
linux:
6+
name: dev
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
12+
- name: Autogen
13+
run: ./autogen.sh
14+
15+
- name: Configure
16+
run: ./configure CC='gcc -fsanitize=undefined,address' CPPFLAGS='-Wall -Wextra -Werror -Wno-error=unused-but-set-parameter' --enable-jit --enable-pcre2-16 --enable-pcre2-32 --enable-debug --with-link-size=4
17+
18+
- name: Build
19+
run: make -j2
20+
21+
- name: Test (main test script)
22+
run: ./RunTest
23+
24+
- name: Test (JIT test program)
25+
run: ./pcre2_jit_test
26+
27+
- name: Test (pcre2grep test script)
28+
run: ./RunGrepTest
29+
30+
- name: Test (pcre2posix test program)
31+
run: ./pcre2posix_test -v

src/pcre2_jit_simd_inc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ struct sljit_jump *jump[2];
496496
int i;
497497

498498
SLJIT_ASSERT(common->mode == PCRE2_JIT_COMPLETE && offs1 > offs2 && offs2 >= 0);
499-
SLJIT_ASSERT(diff <= IN_UCHARS(max_fast_forward_char_pair_offset()));
499+
SLJIT_ASSERT(diff <= (unsigned)IN_UCHARS(max_fast_forward_char_pair_offset()));
500500

501501
/* Initialize. */
502502
if (common->match_end_ptr != 0)

0 commit comments

Comments
 (0)