1 Star 0 Fork 0

NUDTexplorer/tinyobjloader

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
azure-pipelines.yml 4.86 KB
一键复制 编辑 原始数据 按行查看 历史
Syoyo Fujita 提交于 2020-05-28 17:30 . sdist -> dist fix
variables:
# https://cibuildwheel.readthedocs.io/en/stable/cpp_standards/
# python2.7 + C++11(pybind11) is not available.
CIBW_SKIP: "cp27-win* pp27-win32 pp36-win32"
CIBW_BEFORE_BUILD: "pip install pybind11"
#CIBW_BEFORE_BUILD_MACOS: "pip install -U pip setuptools"
#CIBW_BEFORE_BUILD_LINUX: "pip install -U pip setuptools"
#CIBW_TEST_COMMAND: TODO "python -c \"import tinyobjloader; tinyobjloader.test()\""
CIBW_BUILD_VERBOSITY: "2"
#CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
#CIBW_MANYLINUX_I686_IMAGE: manylinux2014
jobs:
- job: unit_linux
pool: { vmImage: "ubuntu-latest" }
steps:
- script: |
cd tests
make && ./tester
displayName: Run unit tests
- job: python_format
pool: { vmImage: "ubuntu-latest" }
steps:
- task: UsePythonVersion@0
- script: |
pip install black==19.10b0
black --check python/
displayName: Check Python code format
- job: linux
pool: {vmImage: "Ubuntu-16.04"}
steps:
- task: UsePythonVersion@0
- bash: |
python3 -m pip install --upgrade pip
pip3 install cibuildwheel twine
# Make the header files available to the build.
cp *.h python
cd python
# Source dist
python3 setup.py sdist
ls -la dist/*
# build binary wheels
cibuildwheel --output-dir wheelhouse .
- task: CopyFiles@2
inputs:
contents: 'python/wheelhouse/**'
targetFolder: $(Build.ArtifactStagingDirectory)
- task: CopyFiles@2
inputs:
contents: 'python/dist/**'
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
inputs:
path: $(Build.ArtifactStagingDirectory)
artifactName: tinyobjDeployLinux
- job: macos
pool: {vmImage: 'macOS-10.15'}
variables:
# Support C++11: https://github.com/joerick/cibuildwheel/pull/156
MACOSX_DEPLOYMENT_TARGET: 10.9
steps:
- task: UsePythonVersion@0
- bash: |
python3 -m pip install --upgrade pip
pip3 install cibuildwheel
# Make the header files available to the build.
cp *.h python
cd python
cibuildwheel --output-dir wheelhouse .
- task: CopyFiles@2
inputs:
contents: 'python/wheelhouse/*.whl'
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
inputs:
path: $(Build.ArtifactStagingDirectory)
artifactName: tinyobjDeployMacOS
- job: windows
pool: {vmImage: 'vs2017-win2016'}
steps:
- task: UsePythonVersion@0
- script: choco install vcpython27 -f -y
displayName: Install Visual C++ for Python 2.7
- bash: |
python -m pip install --upgrade pip
pip install cibuildwheel
# Make the header files available to the build.
cp *.h python
cd python
cibuildwheel --output-dir wheelhouse .
- task: CopyFiles@2
inputs:
contents: 'python/wheelhouse/*.whl'
targetFolder: $(Build.ArtifactStagingDirectory)
- task: PublishBuildArtifacts@1
inputs:
path: $(Build.ArtifactStagingDirectory)
artifactName: tinyobjDeployWindows
- job: deployPyPI
# Based on vispy: https://github.com/vispy/vispy/blob/master/azure-pipelines.yml
pool: {vmImage: 'Ubuntu-16.04'}
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
dependsOn:
- linux
- macos
- windows
steps:
- task: UsePythonVersion@0
# TODO(syoyo): Use buildType: specific to download multiple artifacts at once?
- task: DownloadBuildArtifacts@0
inputs:
artifactName: 'tinyobjDeployLinux'
downloadPath: $(Pipeline.Workspace)
- task: DownloadBuildArtifacts@0
inputs:
artifactName: 'tinyobjDeployMacOS'
downloadPath: $(Pipeline.Workspace)
- task: DownloadBuildArtifacts@0
inputs:
artifactName: 'tinyobjDeployWindows'
downloadPath: $(Pipeline.Workspace)
# Publish to PyPI through twine
- bash: |
cd $(Pipeline.Workspace)
find .
python -m pip install --upgrade pip
pip install twine
echo tinyobjDeployLinux/python/dist/*
echo tinyobjDeployLinux/python/wheelhouse/* tinyobjDeployMacOS/python/wheelhouse/* tinyobjDeployWindows/python/wheelhouse/*
twine upload -u "__token__" --skip-existing tinyobjDeployLinux/python/dist/* tinyobjDeployLinux/python/wheelhouse/* tinyobjDeployMacOS/python/wheelhouse/* tinyobjDeployWindows/python/wheelhouse/*
env:
TWINE_PASSWORD: $(pypiToken2)
trigger:
branches:
include:
- '*'
tags:
include:
- 'v*'
pr:
branches:
include:
- "*"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/nudtexplorer/tinyobjloader.git
git@gitee.com:nudtexplorer/tinyobjloader.git
nudtexplorer
tinyobjloader
tinyobjloader
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385