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:
7
.github/workflows/packagingtest.yml
vendored
7
.github/workflows/packagingtest.yml
vendored
@@ -40,6 +40,7 @@ jobs:
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
- name: Build pycapnp and install
|
||||
if: matrix.arch == 'x86_64'
|
||||
run: |
|
||||
python setup.py build
|
||||
pip install .
|
||||
@@ -62,13 +63,17 @@ jobs:
|
||||
ARCHFLAGS: "-arch arm64" # python wheel
|
||||
_PYTHON_HOST_PLATFORM: "macosx-11.0-arm64" # python wheel
|
||||
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
|
||||
- uses: actions/upload-artifact@v1.0.0
|
||||
with:
|
||||
name: package_dist
|
||||
path: dist
|
||||
- name: Test with pytest
|
||||
if: matrix.arch == 'x86_64'
|
||||
run: |
|
||||
pip install pytest
|
||||
pytest
|
||||
|
||||
Reference in New Issue
Block a user