From f28e82602d5809b69919c8932af83df3b5432f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlo=20Marcelo=20Arenas=20Bel=C3=B3n?= Date: Fri, 22 Apr 2022 02:07:12 -0700 Subject: [PATCH] ci: windows support (#105) Still barebones and only to serve as a starting point and guideline for how to integrate mostly non autotools environments. Selects Intel 32-bit specifically as it is the one that has been tested the most and also has the less number of warnings. Test should be improved further so it is at least equivalent to what is done in Linux, but that is orthogonal to having it integrated, and the tests that were disabled would work locally (albeit in a newer version), so this at least does the minimum to prevent regressions by validating both the interpreter and JIT. Co-authored-by: PhilipHazel --- .github/workflows/build.yml | 21 ++++++++++++++++++++- RunTest.bat | 4 ++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 28c54f9..4d7b579 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: - name: Test (pcre2grep test script) run: ./RunGrepTest - + alpine: name: alpine runs-on: ubuntu-latest @@ -56,3 +56,22 @@ jobs: - name: Test (pcre2grep test script) run: ./RunGrepTest + + 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 + \ No newline at end of file diff --git a/RunTest.bat b/RunTest.bat index 791f265..401b95a 100644 --- a/RunTest.bat +++ b/RunTest.bat @@ -135,9 +135,9 @@ if "%all%" == "yes" ( set do7=yes set do8=yes set do9=yes - set do10=yes + set do10=no set do11=yes - set do12=yes + set do12=no set do13=yes set do14=yes set do15=yes