Skip to content

Commit

Permalink
Build PCRE2 on Windows (#12847)
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Müller <[email protected]>
  • Loading branch information
HertzDevil and straight-shoota authored Jan 4, 2023
1 parent 292052b commit 2354ad5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ jobs:
run: |
cmake . -DBUILD_SHARED_LIBS=OFF -DPCRE_SUPPORT_UNICODE_PROPERTIES=ON -DPCRE_SUPPORT_JIT=ON -DPCRE_STATIC_RUNTIME=ON -DCMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH=OFF
cmake --build . --config Release
- name: Download libpcre2
if: steps.cache-libs.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: PCRE2Project/pcre2
ref: pcre2-10.42
path: pcre2
- name: Build libpcre2
if: steps.cache-libs.outputs.cache-hit != 'true'
working-directory: ./pcre2
run: |
cmake . -DBUILD_STATIC_LIBS=ON -DBUILD_SHARED_LIBS=OFF -DPCRE2_STATIC_RUNTIME=ON -DPCRE2_BUILD_PCRE2GREP=OFF -DPCRE2_BUILD_TESTS=OFF -DPCRE2_SUPPORT_UNICODE=ON -DPCRE2_SUPPORT_JIT=ON -DCMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH=OFF
cmake --build . --config Release
- name: Download libiconv
if: steps.cache-libs.outputs.cache-hit != 'true'
uses: actions/checkout@v3
Expand Down Expand Up @@ -230,6 +243,7 @@ jobs:
run: |
mkdir libs
mv pcre/Release/pcre.lib libs/
mv pcre2/Release/pcre2-8-static.lib libs/pcre2-8.lib
mv libiconv/output/x64/ReleaseStatic/libiconvStatic.lib libs/iconv.lib
mv bdwgc/Release/gc.lib libs/
mv libffi/win32/vs16_x64/x64/Release/libffi.lib libs/ffi.lib
Expand Down

0 comments on commit 2354ad5

Please sign in to comment.