1 Star 1 Fork 1

loujiand/pythonocc-core

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
conda-build.yml 2.67 KB
一键复制 编辑 原始数据 按行查看 历史
tpaviot 提交于 2020-11-11 08:25 . Fix osx build on Azure
parameters:
name: 'Conda build job'
vmImage: 'Ubuntu-18.04'
py_maj: '3'
py_min: '6'
conda_bld: '3.16.3'
jobs:
- job: ${{ parameters.name }}
timeoutInMinutes: 360
pool:
vmImage: ${{ parameters.vmImage }}
steps:
#activate conda
- ${{ if or(contains(parameters.vmImage, 'macOS'),contains(parameters.vmImage, 'Ubuntu')) }}:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: 'Add conda to PATH'
- ${{ if contains(parameters.vmImage, 'win') }}:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: 'Add conda to PATH'
# Ubuntu install opengl items
- ${{ if contains(parameters.vmImage, 'Ubuntu') }}:
- bash: |
sudo apt-get update && \
sudo apt-get -q -y install libglu1-mesa-dev libgl1-mesa-dev libxmu-dev libxi-dev
displayName: 'Install OpenGL headers'
# macOS ownership workaround and fix osx sdk
- ${{ if contains(parameters.vmImage, 'macOS') }}:
- bash: |
sudo chown -R $USER $CONDA && \
curl -o MacOSX10.9.sdk.tar.xz -L https://github.com/phracker/MacOSX-SDKs/releases/download/10.13/MacOSX10.9.sdk.tar.xz && \
tar xf MacOSX10.9.sdk.tar.xz && \
sudo mkdir -p /Applications/Xcode_12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs && \
sudo mv -v MacOSX10.9.sdk /Applications/Xcode_12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ && \
ls /Applications/Xcode_12.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
displayName: 'MacOS ownership workaround and installation of MacOSX10.9 sdk'
- bash: |
conda config --set always_yes yes --set changeps1 no && \
conda update -q conda && \
conda info -a && \
conda config --add channels https://conda.anaconda.org/conda-forge
displayName: 'Conda config and info'
# on windows, set arch if ever 32 is in the build name
- ${{ if contains(parameters.name, '32') }}:
- bash: |
set CONDA_SUBDIR=win-32 && \
conda config --env --set subdir win-32
displayName: 'Windows force 32 bit build'
- bash: conda create --yes --quiet --name build_env conda-build=${{ parameters.conda_bld }} conda-verify libarchive python=${{ parameters.py_maj }}.${{ parameters.py_min }} anaconda-client
displayName: Create Anaconda environment
- bash: |
source activate build_env && \
conda build --no-remove-work-dir --dirty ci/conda
displayName: 'Run conda build'
failOnStderr: false
env:
PYTHONBUFFERED: 1
PYTHON_VERSION: ${{ parameters.py_maj }}.${{ parameters.py_min }}
PACKAGE_VERSION: $(Build.SourceBranchName)
TOKEN: $(anaconda.TOKEN)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/null_427_1637/pythonocc-core.git
[email protected]:null_427_1637/pythonocc-core.git
null_427_1637
pythonocc-core
pythonocc-core
master

搜索帮助