diff --git a/.github/workflows/local-build.yml b/.github/workflows/local-build.yml index 017610c..b26d768 100644 --- a/.github/workflows/local-build.yml +++ b/.github/workflows/local-build.yml @@ -17,6 +17,7 @@ jobs: matrix: os: [ 'macos-14' ] #[ 'ubuntu-22.04', 'macos-11', 'macos-14', 'windows-2019' ] # python-version: [ '3.9', '3.10', '3.11', '3.12' ] + python-version: [ '3.10' ] steps: @@ -116,7 +117,8 @@ jobs: shell: bash -l {0} run: | conda deactivate - conda create --yes -n cadquerytest python=${{ matrix.python-version }} + CONDA_SUBDIR=osx-arm64 conda create --yes -n cadquerytest python=3.10 + conda run -n cadquerytest conda config --env --set subdir osx-arm64 conda activate cadquerytest python -m pip install dist/*.whl python -c "import OCP;print('OCP imported successfully')" diff --git a/local-build.sh b/local-build.sh index 198369e..d6a769b 100755 --- a/local-build.sh +++ b/local-build.sh @@ -7,18 +7,20 @@ function info() { trap "info Exited!; exit;" SIGINT SIGTERM -for python_version in '3.9' '3.10' '3.11' '3.12' +for python_version in '3.10' do info "Building wheel for Python $python_version..." info "Removing temp files..." rm -rf -v ./build rm -rf -v ./cadquery_ocp.egg-info info "Conda Deps Setup..." - conda create --yes -n ocp-build-system -c cadquery -c conda-forge \ + CONDA_SUBDIR=osx-arm64 conda create --yes -n ocp-build-system -c cadquery -c conda-forge \ python=$python_version \ ocp=7.7.2.* \ vtk=9.2.* \ pip + info "Conda Arch Setup..." + conda run -n ocp-build-system conda config --env --set subdir osx-arm64 info "Pip Deps Setup..." conda run -n ocp-build-system pip install \ build \