-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from jim-easterbrook/devel
Devel
- Loading branch information
Showing
4 changed files
with
34 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ on: workflow_dispatch | |
|
||
jobs: | ||
build: | ||
runs-on: flyci-macos-large-latest-m1 | ||
runs-on: macos-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v4 | ||
|
@@ -20,9 +20,6 @@ jobs: | |
tar -xzf exiv2.tar.gz | ||
mv exiv2-0.28.3 libexiv2 | ||
- name: Install pipx | ||
run: pip install pipx | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,31 +36,45 @@ jobs: | |
echo -e "24a25\n> self.requires('libgettext/0.21')" | | ||
c:/msys64/usr/bin/patch.exe libexiv2/conanfile.py | ||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install cmake | ||
uses: jwlawson/actions-setup-cmake@v2 | ||
|
||
- name: Install ninja | ||
uses: seanmiddleditch/gha-setup-ninja@master | ||
|
||
- name: Compile Exiv2 | ||
env: | ||
PATH: "${{ github.workspace }}\\gettext\\bin" | ||
run: > | ||
pip install conan==1.59.0 && | ||
cd libexiv2 && | ||
cmake --preset msvc | ||
-D CMAKE_BUILD_TYPE=Release | ||
-D EXIV2_BUILD_SAMPLES=OFF | ||
-D EXIV2_BUILD_EXIV2_COMMAND=OFF | ||
-D EXIV2_BUILD_UNIT_TESTS=OFF | ||
-D EXIV2_ENABLE_NLS=ON | ||
-D EXIV2_ENABLE_FILESYSTEM_ACCESS=ON | ||
-G "Visual Studio 16 2019" && | ||
cmake --build build-msvc --config Release && | ||
cmake --install build-msvc --config Release && | ||
copy build-msvc\bin\libcurl.dll build-msvc\install\bin | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_ARCHS: auto64 | ||
CIBW_SKIP: pp3* | ||
CIBW_ENVIRONMENT: | | ||
EXIV2_ROOT=libexiv2/build-msvc/install | ||
PATH="$PATH;$(pwd)\\gettext\\bin" | ||
CIBW_TEST_COMMAND: > | ||
python -m exiv2 -v && | ||
python -m unittest discover {project}/tests -v | ||
CIBW_BEFORE_ALL: > | ||
pip install conan==1.59.0 && | ||
cd libexiv2 && | ||
cmake --preset msvc | ||
-D CMAKE_BUILD_TYPE=Release | ||
-D EXIV2_BUILD_SAMPLES=OFF | ||
-D EXIV2_BUILD_EXIV2_COMMAND=OFF | ||
-D EXIV2_BUILD_UNIT_TESTS=OFF | ||
-D EXIV2_ENABLE_NLS=ON | ||
-D EXIV2_ENABLE_FILESYSTEM_ACCESS=ON | ||
-G "Visual Studio 16 2019" && | ||
cmake --build build-msvc --config Release && | ||
cmake --install build-msvc --config Release && | ||
copy build-msvc\bin\libcurl.dll build-msvc\install\bin | ||
- name: Store results | ||
uses: actions/upload-artifact@v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters