-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild-exiv2-wheels-prebuilt.yml
More file actions
76 lines (71 loc) · 2.41 KB
/
Copy pathbuild-exiv2-wheels-prebuilt.yml
File metadata and controls
76 lines (71 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Build python-exiv2 wheels (prebuilt libexiv2)
on: workflow_dispatch
jobs:
build:
name: build ${{ matrix.build }}
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- build: Linux-x64
runner: ubuntu-22.04
exiv2_build: Linux-x86_64
arch: x86_64
- build: Linux-arm64
runner: ubuntu-22.04-arm
exiv2_build: Linux-aarch64
arch: aarch64
- build: MacOS-x64
runner: macos-15-intel
exiv2_build: Darwin-x86_64
target: 15.0
arch: x86_64
- build: MacOS-arm64
runner: macos-14
exiv2_build: Darwin-arm64
target: 14.0
arch: arm64
- build: Windows-x64
runner: windows-2022
exiv2_build: 2022msvc-AMD64
arch: AMD64
env:
EXIV2_VSN: 0.28.8
EXIV2_ROOT: exiv2-0.28.8-${{ matrix.exiv2_build }}
defaults:
run:
shell: bash
steps:
- name: Check out repository code
uses: actions/checkout@v6
- name: Download exiv2.tar.gz
if: ${{ runner.os != 'Windows' }}
run: |
wget -nv https://github.com/Exiv2/exiv2/releases/download/v${{ env.EXIV2_VSN }}/${{ env.EXIV2_ROOT }}.tar.gz -O - |
tar zxf -
- name: Download exiv2.zip
if: ${{ runner.os == 'Windows' }}
run: |
c:/msys64/usr/bin/wget.exe -nv https://github.com/Exiv2/exiv2/releases/download/v${{ env.EXIV2_VSN }}/${{ env.EXIV2_ROOT }}.zip -O exiv2.zip
unzip exiv2.zip
- name: Build wheels
# cibuildwheel@v4.x does Python 3.9+
uses: pypa/cibuildwheel@v4.2.0
env:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_34
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_34
CIBW_ENVIRONMENT_WINDOWS: PATH="$EXIV2_ROOT/bin;$PATH"
CIBW_ENVIRONMENT_PASS_LINUX: EXIV2_ROOT
CIBW_BUILD: "cp*"
CIBW_SKIP: "*musllinux*"
CIBW_BEFORE_ALL_MACOS: brew install inih
CIBW_TEST_COMMAND: >
python -m exiv2 -v &&
python -m unittest discover {project}/tests -v
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.target }}
- name: Store results
uses: actions/upload-artifact@v6
with:
name: exiv2-wheels-${{ matrix.build }}
path: wheelhouse/*.whl