mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
Make Windows ARM64 build as a separate job.
This commit is contained in:
27
.github/workflows/wheels.yml
vendored
27
.github/workflows/wheels.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
# Disable building PyPy wheels on all platforms
|
||||
env:
|
||||
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
|
||||
CIBW_ARCHS_WINDOWS: "AMD64 x86 ARM64"
|
||||
CIBW_ARCHS_WINDOWS: "AMD64 x86"
|
||||
# aarch64 build takes too much time, so aarch64 build is delegated to Cirrus CI.
|
||||
CIBW_ARCHS_LINUX: "x86_64 i686"
|
||||
CIBW_SKIP: pp*
|
||||
@@ -32,6 +32,29 @@ jobs:
|
||||
with:
|
||||
path: ./wheelhouse/*.whl
|
||||
|
||||
# It looks cibuildwheels did not clean build folder(CMake), and it results to Windowd arm64 build failure(trying to use x86 build of .obj)
|
||||
# So supply separated build job for Windows ARM64 build
|
||||
# TODO: clean build folder using CIBW_BEFORE_ALL?
|
||||
build_win_arm64_wheels:
|
||||
name: Build ARM64 wheels on Windows.
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Build wheels
|
||||
uses: pypa/cibuildwheel@v2.12.1
|
||||
# to supply options, put them in 'env', like:
|
||||
# env:
|
||||
# CIBW_SOME_OPTION: value
|
||||
# Disable building PyPy wheels on all platforms
|
||||
env:
|
||||
CIBW_ARCHS_WINDOWS: "ARM64"
|
||||
CIBW_SKIP: pp*
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: ./wheelhouse/*.whl
|
||||
|
||||
make_sdist:
|
||||
name: Make SDist
|
||||
runs-on: ubuntu-latest
|
||||
@@ -49,7 +72,7 @@ jobs:
|
||||
path: dist/*.tar.gz
|
||||
|
||||
upload_all:
|
||||
needs: [build_wheels, make_sdist]
|
||||
needs: [build_wheels, build_wheels, make_sdist]
|
||||
runs-on: ubuntu-latest
|
||||
# # upload to PyPI on every tag starting with 'v'
|
||||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
|
||||
|
||||
Reference in New Issue
Block a user