mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
Distribute Apple M1 to PyPi
This commit is contained in:
@@ -43,6 +43,10 @@ jobs:
|
|||||||
name: "MacOS Build",
|
name: "MacOS Build",
|
||||||
short_name: macos
|
short_name: macos
|
||||||
}
|
}
|
||||||
|
- {
|
||||||
|
name: "MacOS ARM Build",
|
||||||
|
short_name: macosm1
|
||||||
|
}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v2 # https://github.com/actions/setup-python
|
- uses: actions/setup-python@v2 # https://github.com/actions/setup-python
|
||||||
|
|||||||
@@ -24,10 +24,20 @@ endif
|
|||||||
ifeq ($(PLATFORM), macos)
|
ifeq ($(PLATFORM), macos)
|
||||||
PLATFORMTAG:=macosx_10_15_x86_64
|
PLATFORMTAG:=macosx_10_15_x86_64
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(PLATFORM), macosm1)
|
||||||
|
PLATFORMTAG:=macosx_11_0_arm64
|
||||||
|
endif
|
||||||
ifeq ($(PLATFORM), win)
|
ifeq ($(PLATFORM), win)
|
||||||
PLATFORMTAG:=win_amd64
|
PLATFORMTAG:=win_amd64
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(PLATFORM), macosm1)
|
||||||
|
ifeq ($(PYVERSION), py36)
|
||||||
|
# Pure Evil. Let me know if you're the first to file a bug report.
|
||||||
|
PYNUMBER:=37
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
pytest -p no:pytest-blender test
|
pytest -p no:pytest-blender test
|
||||||
@@ -67,7 +77,7 @@ endif
|
|||||||
mkdir -p dist/ifcopenshell
|
mkdir -p dist/ifcopenshell
|
||||||
cp -r ifcopenshell/* dist/ifcopenshell/
|
cp -r ifcopenshell/* dist/ifcopenshell/
|
||||||
|
|
||||||
cd dist/working && wget https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-$(PYNUMBER)-v0.7.0-dc67287-$(PLATFORM)64.zip
|
cd dist/working && wget https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-$(PYNUMBER)-v0.7.0-4fb910f-$(PLATFORM)64.zip
|
||||||
cd dist/working && unzip ifcopenshell-python*
|
cd dist/working && unzip ifcopenshell-python*
|
||||||
cp -r dist/working/ifcopenshell/ifcopenshell_wrapper.py dist/ifcopenshell/
|
cp -r dist/working/ifcopenshell/ifcopenshell_wrapper.py dist/ifcopenshell/
|
||||||
ifeq ($(PLATFORM), win)
|
ifeq ($(PLATFORM), win)
|
||||||
|
|||||||
Reference in New Issue
Block a user