1+ name : Build python-ldap wheels for Windows
2+
3+ on :
4+ workflow_dispatch :
5+
6+ env :
7+ OPENSSL_VER : openssl-1.1.1t
8+ OPENLDAP_VER : openldap-2.4.59
9+ PYTHONLDAP_VER : python-ldap-3.4.3
10+ CIBW_TEST_COMMAND : python -c"import ldap;print(ldap.__version__)"
11+ CIBW_SKIP : " pp* cp36*"
12+ MSBUILDTREATHIGHERTOOLSVERSIONASCURRENT : 1
13+
14+ jobs :
15+ build_amd64 :
16+ name : Build AMD64 wheels
17+ runs-on : ${{ matrix.os }}
18+ strategy :
19+ matrix :
20+ os : [windows-2022]
21+ env :
22+ VS_PLATFORM : x64
23+ OPENSSL_CONFIG : VC-WIN64A-masm
24+ steps :
25+ - uses : actions/checkout@v3
26+ -
uses :
microsoft/[email protected] 27+ with :
28+ msbuild-architecture : x64
29+ - uses : ilammy/msvc-dev-cmd@v1
30+ with :
31+ arch : amd64
32+ - run : build_openssl.cmd
33+ shell : cmd
34+ - run : build_openldap.cmd
35+ shell : cmd
36+ - run : build_python-ldap.cmd
37+ shell : cmd
38+ 39+ env :
40+ CIBW_ARCHS_WINDOWS : AMD64
41+ - uses : actions/upload-artifact@v3
42+ with :
43+ path : ./wheelhouse/*.whl
44+ build_x86 :
45+ name : Build x86 wheels
46+ runs-on : ${{ matrix.os }}
47+ strategy :
48+ matrix :
49+ os : [windows-2022]
50+ env :
51+ VS_PLATFORM : Win32
52+ OPENSSL_CONFIG : VC-WIN32
53+ steps :
54+ - uses : actions/checkout@v3
55+ -
uses :
microsoft/[email protected] 56+ with :
57+ msbuild-architecture : x86
58+ - uses : ilammy/msvc-dev-cmd@v1
59+ with :
60+ arch : amd64_x86
61+ - uses : ilammy/setup-nasm@v1
62+ - run : build_openssl.cmd
63+ shell : cmd
64+ - run : build_openldap.cmd
65+ shell : cmd
66+ - run : build_python-ldap.cmd
67+ shell : cmd
68+ 69+ env :
70+ CIBW_ARCHS_WINDOWS : x86
71+ - uses : actions/upload-artifact@v3
72+ with :
73+ path : ./wheelhouse/*.whl
74+ # ARM64 wheel is broken
75+ # build_arm64:
76+ # name: Build ARM64 wheels
77+ # runs-on: ${{ matrix.os }}
78+ # strategy:
79+ # matrix:
80+ # os: [windows-2022]
81+ # env:
82+ # VS_PLATFORM: ARM64
83+ # OPENSSL_CONFIG: VC-WIN64-ARM
84+ # steps:
85+ # - uses: actions/checkout@v3
86+ # - uses: microsoft/[email protected] 87+ # with:
88+ # msbuild-architecture: arm64
89+ # - uses: ilammy/msvc-dev-cmd@v1
90+ # with:
91+ # arch: amd64_arm64
92+ # - run: build.cmd
93+ # shell: cmd
94+ 95+ # env:
96+ # CIBW_SKIP: "pp* cp36* cp37* cp38* cp39* cp310*"
97+ # CIBW_ARCHS_WINDOWS: ARM64
98+ # - uses: actions/upload-artifact@v3
99+ # with:
100+ # path: ./wheelhouse/*.whl
0 commit comments