Skip to content

Commit

Permalink
CI: inih now available for Cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilos committed Jan 18, 2023
1 parent d5afb08 commit 7ac96fc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 36 deletions.
52 changes: 19 additions & 33 deletions .github/workflows/on_PR_windows_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Build
run: |
cmake --preset base_windows -S . -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DBUILD_SHARED_LIBS=${{matrix.shared_libraries}} -DEXIV2_ENABLE_VIDEO=ON
cmake --preset base_windows -S . -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DBUILD_SHARED_LIBS=${{matrix.shared_libraries}} -DEXIV2_ENABLE_VIDEO=ON
cmake --build build --parallel
- name: Install
Expand Down Expand Up @@ -121,25 +121,26 @@ jobs:
libwinpthread:p
cmake:p
ninja:p
expat:p
gettext:p
python:p
gtest:p
libiconv:p
zlib:p
brotli:p
curl:p
meson:p
expat:p
libiconv:p
libinih:p
zlib:p
- name: Build
run: |
cmake --preset base_windows -S . -B build \
cmake --preset base_windows \
-DCMAKE_CXX_FLAGS=-Wno-deprecated \
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
-DBUILD_SHARED_LIBS=${{matrix.shared_libraries}} \
-DCONAN_AUTO_INSTALL=OFF \
-DCMAKE_CXX_FLAGS=-Wno-deprecated \
-DEXIV2_TEAM_WARNINGS_AS_ERRORS=OFF \
-DEXIV2_ENABLE_VIDEO=ON \
-DEXIV2_TEAM_WARNINGS_AS_ERRORS=OFF
-DPython3_EXECUTABLE=${MINGW_PREFIX}/bin/python.exe \
-S . -B build && \
cmake --build build --parallel
- name: Test
Expand Down Expand Up @@ -174,40 +175,25 @@ jobs:
gcc-g++
cmake
ninja
pkg-config
python3
libbrotli-devel
libcurl-devel
libexpat-devel
libxml2-devel
libxslt-devel
python38-lxml
libiconv-devel
libinih-devel
zlib-devel
libbrotlicommon1
libbrotlidec1
libbrotli-devel
meson
ccache
- name: Build and install inih
run: |
git clone https://github.com/benhoyt/inih.git inih_build && \
cd inih_build && \
git checkout r56 && \
meson --buildtype=plain --prefix=/usr builddir && \
meson compile -C builddir && \
meson install -C builddir
- name: Build
run: |
cmake -GNinja \
cmake --preset base_windows \
-DCMAKE_CXX_FLAGS=-Wno-deprecated \
-DCMAKE_BUILD_TYPE=${{matrix.build_type}} \
-DBUILD_SHARED_LIBS=${{matrix.shared_libraries}} \
-DEXIV2_ENABLE_NLS=OFF \
-DEXIV2_ENABLE_WIN_UNICODE=OFF \
-DEXIV2_ENABLE_WEBREADY=ON \
-DEXIV2_ENABLE_CURL=ON \
-DEXIV2_ENABLE_BMFF=ON \
-DEXIV2_ENABLE_VIDEO=ON \
-DCONAN_AUTO_INSTALL=OFF \
-DEXIV2_BUILD_UNIT_TESTS=OFF \
-DEXIV2_TEAM_WARNINGS_AS_ERRORS=OFF \
-DEXIV2_ENABLE_VIDEO=ON \
-S . -B build && \
cmake --build build --parallel
Expand Down
6 changes: 3 additions & 3 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"displayName": "Base preset for Windows (specially useful for CI jobs)",
"inherits": "base_ninja",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
"type": "matches",
"string": "${hostSystemName}",
"regex": "Windows|CYGWIN.*|MSYS.*"
}
},
{
Expand Down

0 comments on commit 7ac96fc

Please sign in to comment.