Skip to content

Commit

Permalink
ci: add dev build to serve as canary
Browse files Browse the repository at this point in the history
Hopefully to fail earlier and including some non standard options
  • Loading branch information
carenas committed Nov 16, 2023
1 parent b88126f commit 1305abd
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
run: ./autogen.sh

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

- name: Build
run: make
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
run: ./autogen.sh

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

- name: Build
run: make
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Dev
on: [push, pull_request]

jobs:
linux:
name: dev
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Autogen
run: ./autogen.sh

- name: Configure
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

- name: Build
run: make -j2

- name: Test (main test script)
run: ./RunTest

- name: Test (JIT test program)
run: ./pcre2_jit_test

- name: Test (pcre2grep test script)
run: ./RunGrepTest

- name: Test (pcre2posix test program)
run: ./pcre2posix_test -v
2 changes: 1 addition & 1 deletion src/pcre2_jit_simd_inc.h
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ struct sljit_jump *jump[2];
int i;

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

/* Initialize. */
if (common->match_end_ptr != 0)
Expand Down

0 comments on commit 1305abd

Please sign in to comment.