2022-04-20 09:43:44 +02:00
|
|
|
|
|
|
|
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
name: Linux
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Autogen
|
|
|
|
run: ./autogen.sh
|
|
|
|
|
|
|
|
- name: Configure
|
|
|
|
run: ./configure --enable-jit --enable-pcre2-8 --enable-pcre2-16 --enable-pcre2-32
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: make
|
|
|
|
|
2022-04-22 10:31:05 +02:00
|
|
|
- name: Test (main test script)
|
|
|
|
run: ./RunTest
|
|
|
|
|
|
|
|
- name: Test (JIT test program)
|
|
|
|
run: ./pcre2_jit_test
|
|
|
|
|
|
|
|
- name: Test (pcre2grep test script)
|
|
|
|
run: ./RunGrepTest
|
2022-04-22 11:07:12 +02:00
|
|
|
|
2022-04-22 10:31:05 +02:00
|
|
|
alpine:
|
|
|
|
name: alpine
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: alpine
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Autotools
|
|
|
|
run: apk add --no-cache automake autoconf gcc libtool make musl-dev
|
|
|
|
|
|
|
|
- name: Autogen
|
|
|
|
run: ./autogen.sh
|
|
|
|
|
|
|
|
- name: Configure
|
|
|
|
run: ./configure --enable-jit --enable-pcre2-8 --enable-pcre2-16 --enable-pcre2-32
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: make
|
|
|
|
|
|
|
|
- name: Test (main test script)
|
|
|
|
run: ./RunTest
|
|
|
|
|
|
|
|
- name: Test (JIT test program)
|
|
|
|
run: ./pcre2_jit_test
|
|
|
|
|
|
|
|
- name: Test (pcre2grep test script)
|
|
|
|
run: ./RunGrepTest
|
2022-04-22 11:07:12 +02:00
|
|
|
|
|
|
|
windows:
|
|
|
|
name: 32bit Windows
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Configure
|
|
|
|
run: cmake -DPCRE2_SUPPORT_JIT=ON -DPCRE2_BUILD_PCRE2_16=ON -DPCRE2_BUILD_PCRE2_32=ON -B build -A Win32
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: cmake --build build
|
|
|
|
|
|
|
|
- name: Test
|
|
|
|
run: |
|
|
|
|
cd build\Debug
|
|
|
|
..\..\RunTest.bat
|
|
|
|
|