4141 - name : Repack wheel
4242 run : .github/build_scripts/repack_wheel_windows.ps1 Win64 wheelhouse/${{ runner.os }}
4343
44- - uses : actions/upload-artifact@v2
44+ - name : Upload artifacts
45+ uses : actions/upload-artifact@v2
4546 with :
4647 name : wheels
4748 path : wheelhouse/*/*.whl
@@ -72,11 +73,12 @@ jobs:
7273 mkdir src
7374 cp snap7-full-1.4.2/release/Wrappers/c-cpp/snap7.h src
7475 cp .github/build_scripts/dummy.c ./
76+
7577 - name : Build pure python wheel
7678 run : python3 setup.py bdist_wheel --plat-name=manylinux1_x86_64
7779
7880 - name : Build platform wheel
79- uses : joerick /cibuildwheel@v1.11.0
81+ uses : pypa /cibuildwheel@v2.1.3
8082 with :
8183 output-dir : wheelhouse
8284 env :
@@ -88,15 +90,15 @@ jobs:
8890 - name : Repack wheel
8991 run : bash .github/build_scripts/repack_wheel.sh wheelhouse dist wheelhouse/${{ runner.os }}
9092
91- - name : upload artifacts
93+ - name : Upload artifacts
9294 uses : actions/upload-artifact@v2
9395 with :
9496 name : wheels
9597 path : wheelhouse/*/*.whl
9698
9799 osx-build :
98100 name : Build wheel for osx
99- runs-on : macos-latest
101+ runs-on : macos-11
100102 steps :
101103 - name : Checkout
102104 uses : actions/checkout@v2
@@ -121,43 +123,46 @@ jobs:
121123 mkdir src
122124 cp snap7-full-1.4.2/release/Wrappers/c-cpp/snap7.h src
123125 cp .github/build_scripts/dummy.c ./
126+ cp .github/build_scripts/arm64_osx.mk snap7-full-1.4.2/build/osx/
124127 pushd snap7-full-1.4.2/build/osx/
125128 make -f x86_64_osx.mk all
126- cp ../bin/x86_64-osx/libsnap7.dylib /usr/local/lib
129+ make -f arm64_osx.mk all
130+ lipo -create -output /usr/local/lib/libsnap7.dylib ../bin/x86_64-osx/libsnap7.dylib ../bin/arm64-osx/libsnap7.dylib
127131 install_name_tool -id /usr/local/lib/libsnap7.dylib /usr/local/lib/libsnap7.dylib
128132
129133 - name : Install cibuildwheel
130- run : python3 -m pip install cibuildwheel==1.10.0 wheel --upgrade
134+ run : python3 -m pip install cibuildwheel wheel --upgrade
131135
132136 - name : Build pure python wheel
133- run : python3 setup.py bdist_wheel --plat-name=macosx_10_9_x86_64
137+ run : python3 setup.py bdist_wheel --plat-name=macosx_10_9_universal2
134138
135139 - name : Build platform wheel
136- uses : joerick /cibuildwheel@v1.11.0
140+ uses : pypa /cibuildwheel@v2.1.3
137141 with :
138142 output-dir : wheelhouse
139143 env :
140- CIBW_BUILD : cp36-macosx_x86_64
144+ CIBW_BUILD : cp38-macosx_universal2
145+ CIBW_ARCHS_MACOS : universal2
141146 CIBW_BUILD_VERBOSITY : 1
142147 CIBW_ENVIRONMENT : " BUILD_WHEEL_WITH_EXTENSION=1"
143148
144149 - name : Repack wheel
145150 run : bash .github/build_scripts/repack_wheel.sh wheelhouse dist wheelhouse/${{ runner.os }}
146151
147- - name : upload artifacts
152+ - name : Upload artifacts
148153 uses : actions/upload-artifact@v2
149154 with :
150155 name : wheels
151156 path : wheelhouse/*/*.whl
152157
153158 test-wheels :
154- name : testing wheels
159+ name : Testing wheels
155160 needs : [windows-build, linux-build, osx-build]
156161 runs-on : ${{ matrix.os }}
157162 strategy :
158163 matrix :
159164 os : [ubuntu-latest, macos-latest, windows-latest]
160- python-version : [3.6, 3.7, 3.8, 3.9]
165+ python-version : [" 3.6", " 3.7", " 3.8", " 3.9", "3.10" ]
161166 steps :
162167 - name : Checkout
163168 uses : actions/checkout@v2
@@ -172,12 +177,13 @@ jobs:
172177 python3 -m pip install --upgrade pip
173178 python3 -m pip install pytest
174179
175- - uses : actions/download-artifact@v2
180+ - name : Download artifacts
181+ uses : actions/download-artifact@v2
176182 with :
177183 name : wheels
178184 path : wheelhouse
179185
180- - name : install python-snap7
186+ - name : Install python-snap7
181187 run : python3 -m pip install $(ls wheelhouse/${{ runner.os }}/*.whl)
182188
183189 - name : Run pytest
0 commit comments