Fixing issue with m1 build (#297)

* Fixing issue with m1 build

- prevent earlier build step from running on arm64
- forced clean up of bundled dir
- adding --force-bundled-libcapnp to trigger a rebuild
- echoing out env variables and showing final wheel size

* Disable tests on Apple Silicon cross compile
This commit is contained in:
Madhava Jay
2022-09-10 15:14:23 +10:00
committed by GitHub
parent 583fe9e42d
commit f45a9d0331

View File

@@ -40,6 +40,7 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install -r requirements.txt pip install -r requirements.txt
- name: Build pycapnp and install - name: Build pycapnp and install
if: matrix.arch == 'x86_64'
run: | run: |
python setup.py build python setup.py build
pip install . pip install .
@@ -62,13 +63,17 @@ jobs:
ARCHFLAGS: "-arch arm64" # python wheel ARCHFLAGS: "-arch arm64" # python wheel
_PYTHON_HOST_PLATFORM: "macosx-11.0-arm64" # python wheel _PYTHON_HOST_PLATFORM: "macosx-11.0-arm64" # python wheel
run: | run: |
python setup.py bdist_wheel env
rm -rf dist build build64 bundled
python setup.py bdist_wheel --force-bundled-libcapnp
ls -lh dist
python setup.py sdist python setup.py sdist
- uses: actions/upload-artifact@v1.0.0 - uses: actions/upload-artifact@v1.0.0
with: with:
name: package_dist name: package_dist
path: dist path: dist
- name: Test with pytest - name: Test with pytest
if: matrix.arch == 'x86_64'
run: | run: |
pip install pytest pip install pytest
pytest pytest