Skip to content

Commit

Permalink
check libxml on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ctapmex committed Sep 17, 2024
1 parent 41eaf15 commit 44e9b54
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/colorer_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
arch: [ x64, x86 ]
icu: [ON, OFF]
zip: [ON, OFF]
libxml: [ON, OFF]
include:
- arch: x64
triplet: x64-windows-static-rel
Expand All @@ -92,7 +93,7 @@ jobs:
- arch: x86
zip: OFF

name: windows-${{ matrix.arch }}-icu_${{ matrix.icu }}-zip_${{ matrix.zip }}
name: windows-${{ matrix.arch }}-icu_${{ matrix.icu }}-zip_${{ matrix.zip }}-libxml_${{ matrix.libxml }}

steps:
- name: Checkout source
Expand Down Expand Up @@ -145,6 +146,7 @@ jobs:
-DVCPKG_FEATURE_FLAGS=manifests,versions
-DCOLORER_USE_ICU_STRINGS=${{ matrix.icu }}
-DCOLORER_USE_ZIPINPUTSOURCE=${{ matrix.zip }}
-DCOLORER_USE_LIBXML=${{ matrix.libxml }}
- name: Build
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion src/colorer/xml/libxml2/LibXmlReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ xmlParserInputPtr LibXmlReader::xmlMyExternalEntityLoader(const char* URL, const

void LibXmlReader::xml_error_func(void* /*ctx*/, const char* msg, ...)
{
static char buf[PATH_MAX];
static char buf[4096];
static int slen = 0;
va_list args;

Expand Down
4 changes: 4 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"features": [
"data-archive"
]
},
{
"name": "libxml2",
"default-features": false
}
],
"builtin-baseline": "53bef8994c541b6561884a8395ea35715ece75db"
Expand Down

0 comments on commit 44e9b54

Please sign in to comment.