@@ -36,31 +36,45 @@ jobs:
3636 echo -e "24a25\n> self.requires('libgettext/0.21')" |
3737 c:/msys64/usr/bin/patch.exe libexiv2/conanfile.py
3838
39+ - name : Install Python
40+ uses : actions/setup-python@v5
41+ with :
42+ python-version : 3.11
43+
44+ - name : Install cmake
45+ uses : jwlawson/actions-setup-cmake@v2
46+
47+ - name : Install ninja
48+ uses : seanmiddleditch/gha-setup-ninja@master
49+
50+ - name : Compile Exiv2
51+ env :
52+ PATH : " ${{ github.workspace }}\\ gettext\\ bin"
53+ run : >
54+ pip install conan==1.59.0 &&
55+ cd libexiv2 &&
56+ cmake --preset msvc
57+ -D CMAKE_BUILD_TYPE=Release
58+ -D EXIV2_BUILD_SAMPLES=OFF
59+ -D EXIV2_BUILD_EXIV2_COMMAND=OFF
60+ -D EXIV2_BUILD_UNIT_TESTS=OFF
61+ -D EXIV2_ENABLE_NLS=ON
62+ -D EXIV2_ENABLE_FILESYSTEM_ACCESS=ON
63+ -G "Visual Studio 16 2019" &&
64+ cmake --build build-msvc --config Release &&
65+ cmake --install build-msvc --config Release &&
66+ copy build-msvc\bin\libcurl.dll build-msvc\install\bin
67+
3968 - name : Build wheels
4069 uses : pypa/cibuildwheel@v2.16.5
4170 env :
4271 CIBW_ARCHS : auto64
4372 CIBW_SKIP : pp3*
4473 CIBW_ENVIRONMENT : |
4574 EXIV2_ROOT=libexiv2/build-msvc/install
46- PATH="$PATH;$(pwd)\\gettext\\bin"
4775 CIBW_TEST_COMMAND : >
4876 python -m exiv2 -v &&
4977 python -m unittest discover {project}/tests -v
50- CIBW_BEFORE_ALL : >
51- pip install conan==1.59.0 &&
52- cd libexiv2 &&
53- cmake --preset msvc
54- -D CMAKE_BUILD_TYPE=Release
55- -D EXIV2_BUILD_SAMPLES=OFF
56- -D EXIV2_BUILD_EXIV2_COMMAND=OFF
57- -D EXIV2_BUILD_UNIT_TESTS=OFF
58- -D EXIV2_ENABLE_NLS=ON
59- -D EXIV2_ENABLE_FILESYSTEM_ACCESS=ON
60- -G "Visual Studio 16 2019" &&
61- cmake --build build-msvc --config Release &&
62- cmake --install build-msvc --config Release &&
63- copy build-msvc\bin\libcurl.dll build-msvc\install\bin
6478
6579 - name : Store results
6680 uses : actions/upload-artifact@v4
0 commit comments