-
Notifications
You must be signed in to change notification settings - Fork 649
ci(wheels): unbreak wheel release + other enhancements pt 1 #4937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 13 commits
0d54973
699c776
b532663
6a5677b
95f3aa3
440593b
fad5c90
043acb1
aa7f34b
efab6ff
8527d7f
9c02b73
bc0cc78
e606d70
4fa4d9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -114,30 +114,10 @@ jobs: | |
| manylinux: manylinux_2_28 | ||
| python: cp313-manylinux_x86_64 | ||
| arch: x86_64 | ||
| # ------------------------------------------------------------------- | ||
| # CPython 64 bits manylinux2014 | ||
| # ------------------------------------------------------------------- | ||
| - build: CPython 3.9 64 bits manylinux2014 | ||
| manylinux: manylinux2014 | ||
| python: cp39-manylinux_x86_64 | ||
| arch: x86_64 | ||
| - build: CPython 3.10 64 bits manylinux2014 | ||
| manylinux: manylinux2014 | ||
| python: cp310-manylinux_x86_64 | ||
| arch: x86_64 | ||
| - build: CPython 3.11 64 bits manylinux2014 | ||
| manylinux: manylinux2014 | ||
| python: cp311-manylinux_x86_64 | ||
| arch: x86_64 | ||
| - build: CPython 3.12 64 bits manylinux2014 | ||
| manylinux: manylinux2014 | ||
| python: cp312-manylinux_x86_64 | ||
| arch: x86_64 | ||
| - build: CPython 3.13 64 bits manylinux2014 | ||
| manylinux: manylinux2014 | ||
| python: cp313-manylinux_x86_64 | ||
| - build: CPython 3.14 64 bits manylinux_2_28 | ||
| manylinux: manylinux_2_28 | ||
| python: cp314-manylinux_x86_64 | ||
| arch: x86_64 | ||
|
|
||
| steps: | ||
| - name: Checkout repo | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
|
|
@@ -157,7 +137,7 @@ jobs: | |
|
|
||
| - name: Build wheels | ||
| # Note: the version of cibuildwheel should be kept in sync with src/python/stubs/CMakeLists.txt | ||
| uses: pypa/cibuildwheel@d4a2945fcc8d13f20a1b99d461b8e844d5fc6e23 # v2.21.1 | ||
| uses: pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2.1 | ||
| env: | ||
| # pass GITHUB_ACTIONS through to the build container so that custom | ||
| # processes can tell they are running in CI. | ||
|
|
@@ -170,7 +150,7 @@ jobs: | |
| CIBW_ENVIRONMENT: > | ||
| CCACHE_DIR=/host//home/runner/.ccache | ||
| CCACHE_COMPRESSION=yes | ||
| CCACHE_PREBUILT=0 | ||
| CCACHE_PREBUILT=1 | ||
| CMAKE_BUILD_PARALLEL_LEVEL=4 | ||
| CTEST_PARALLEL_LEVEL=4 | ||
| SKBUILD_CMAKE_ARGS="-DLINKSTATIC=1" | ||
|
|
@@ -220,33 +200,37 @@ jobs: | |
| # ------------------------------------------------------------------- | ||
| # CPython ARM 64 bits manylinux2014 | ||
| # ------------------------------------------------------------------- | ||
| - build: CPython 3.9 ARM 64 bits manylinux2014 | ||
| manylinux: manylinux2014 | ||
| - build: CPython 3.9 ARM 64 bits manylinux_2_28 | ||
| manylinux: manylinux_2_28 | ||
| python: cp39-manylinux_aarch64 | ||
| arch: aarch64 | ||
| - build: CPython 3.10 ARM 64 bits manylinux2014 | ||
| manylinux: manylinux2014 | ||
| - build: CPython 3.10 ARM 64 bits manylinux_2_28 | ||
| manylinux: manylinux_2_28 | ||
| python: cp310-manylinux_aarch64 | ||
| arch: aarch64 | ||
| - build: CPython 3.11 ARM 64 bits manylinux2014 | ||
| manylinux: manylinux2014 | ||
| - build: CPython 3.11 ARM 64 bits manylinux_2_28 | ||
| manylinux: manylinux_2_28 | ||
| python: cp311-manylinux_aarch64 | ||
| arch: aarch64 | ||
| - build: CPython 3.12 ARM 64 bits manylinux2014 | ||
| manylinux: manylinux2014 | ||
| - build: CPython 3.12 ARM 64 bits manylinux_2_28 | ||
| manylinux: manylinux_2_28 | ||
| python: cp312-manylinux_aarch64 | ||
| arch: aarch64 | ||
| - build: CPython 3.13 ARM 64 bits manylinux2014 | ||
| manylinux: manylinux2014 | ||
| - build: CPython 3.13 ARM 64 bits manylinux_2_28 | ||
| manylinux: manylinux_2_28 | ||
| python: cp313-manylinux_aarch64 | ||
| arch: aarch64 | ||
| - build: CPython 3.14 ARM 64 bits manylinux_2_28 | ||
| manylinux: manylinux_2_28 | ||
| python: cp314-manylinux_aarch64 | ||
| arch: aarch64 | ||
|
|
||
| steps: | ||
| - name: Checkout repo | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
|
|
||
| - name: Install Python | ||
| uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | ||
| uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2. | ||
| with: | ||
| python-version: '3.9' | ||
|
|
||
|
|
@@ -259,7 +243,7 @@ jobs: | |
| restore-keys: wheel-${{runner.os}}-${{matrix.python}} | ||
|
|
||
| - name: Build wheels | ||
| uses: pypa/cibuildwheel@d4a2945fcc8d13f20a1b99d461b8e844d5fc6e23 # v2.21.1 | ||
| uses: pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2.1 | ||
| env: | ||
| CIBW_ENVIRONMENT_PASS_LINUX: GITHUB_ACTIONS | ||
| CIBW_BEFORE_ALL: "source src/build-scripts/build_ccache.bash && pwd && /project/ext/dist/bin/ccache --max-size=200M && /project/ext/dist/bin/ccache -sv && export CMAKE_C_COMPILER_LAUNCHER=/project/ext/dist/bin/ccache CMAKE_CXX_COMPILER_LAUNCHER=/project/ext/dist/bin/ccache" | ||
|
|
@@ -308,7 +292,7 @@ jobs: | |
|
|
||
| macos: | ||
| name: Build wheels on macOS | ||
| runs-on: macos-13 | ||
| runs-on: macos-15-intel | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops, my bad, I totally didn't think about the wheels when I did this very change on the regular CI. |
||
| if: | | ||
| github.event_name != 'schedule' || | ||
| github.repository == 'AcademySoftwareFoundation/OpenImageIO' | ||
|
|
@@ -333,6 +317,9 @@ jobs: | |
| - build: CPython 3.13 64 bits | ||
| python: cp313-macosx_x86_64 | ||
| arch: x86_64 | ||
| - build: CPython 3.14 64 bits | ||
| python: cp314-macosx_x86_64 | ||
| arch: x86_64 | ||
|
|
||
| steps: | ||
| - name: Checkout repo | ||
|
|
@@ -341,7 +328,7 @@ jobs: | |
| - name: Install Python | ||
| uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | ||
| with: | ||
| python-version: '3.9' | ||
| python-version: 3.9 | ||
zachlewis marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| - name: ccache-restore | ||
| id: ccache-restore | ||
|
|
@@ -355,12 +342,12 @@ jobs: | |
| run: | | ||
| brew install ninja ccache || true | ||
|
|
||
| - name: Remove brew OpenEXR/Imath | ||
| - name: Brew uninstall problematic dependencies | ||
| run: | | ||
| brew uninstall --ignore-dependencies openexr imath || true | ||
| brew uninstall -f --ignore-dependencies openexr imath expat cmake || true | ||
lgritz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| - name: Build wheels | ||
| uses: pypa/cibuildwheel@d4a2945fcc8d13f20a1b99d461b8e844d5fc6e23 # v2.21.1 | ||
| uses: pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2.1 | ||
| env: | ||
| CIBW_BUILD: ${{ matrix.python }} | ||
| CIBW_ARCHS: ${{ matrix.arch }} | ||
|
|
@@ -419,6 +406,9 @@ jobs: | |
| - build: CPython 3.13 ARM 64 bits | ||
| python: cp313-macosx_arm64 | ||
| arch: arm64 | ||
| - build: CPython 3.14 ARM 64 bits | ||
| python: cp314-macosx_arm64 | ||
| arch: arm64 | ||
|
|
||
| steps: | ||
| - name: Checkout repo | ||
|
|
@@ -427,7 +417,7 @@ jobs: | |
| - name: Install Python | ||
| uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | ||
| with: | ||
| python-version: '3.9' | ||
| python-version: 3.9 | ||
|
|
||
| - name: ccache-restore | ||
| id: ccache-restore | ||
|
|
@@ -442,7 +432,7 @@ jobs: | |
| brew install ninja ccache || true | ||
|
|
||
| - name: Build wheels | ||
| uses: pypa/cibuildwheel@d4a2945fcc8d13f20a1b99d461b8e844d5fc6e23 # v2.21.1 | ||
| uses: pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2.1 | ||
| env: | ||
| CIBW_BUILD: ${{ matrix.python }} | ||
| CIBW_ARCHS: ${{ matrix.arch }} | ||
|
|
@@ -496,6 +486,9 @@ jobs: | |
| - build: CPython 3.13 64 bits | ||
| python: cp313-win_amd64 | ||
| arch: AMD64 | ||
| - build: CPython 3.14 64 bits | ||
| python: cp314-win_amd64 | ||
| arch: AMD64 | ||
|
|
||
| steps: | ||
| - name: Checkout repo | ||
|
|
@@ -504,10 +497,10 @@ jobs: | |
| - name: Install Python | ||
| uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | ||
| with: | ||
| python-version: '3.9' | ||
| python-version: 3.9 | ||
|
|
||
| - name: Build wheels | ||
| uses: pypa/cibuildwheel@d4a2945fcc8d13f20a1b99d461b8e844d5fc6e23 # v2.21.1 | ||
| uses: pypa/cibuildwheel@9c00cb4f6b517705a3794b22395aedc36257242c # v3.2.1 | ||
| env: | ||
| CIBW_BUILD: ${{ matrix.python }} | ||
| CIBW_ARCHS: ${{ matrix.arch }} | ||
|
|
@@ -529,7 +522,7 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| permissions: | ||
| id-token: write | ||
| if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v3.0.') && github.repository == 'AcademySoftwareFoundation/OpenImageIO' | ||
| if: github.event_name == 'push' && (startsWith(github.event.ref, 'refs/tags/v3.0.') || startsWith(github.event.ref, 'refs/tags/v3.1.')) && github.repository == 'AcademySoftwareFoundation/OpenImageIO' | ||
| steps: | ||
| - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ echo "HOME=$HOME" | |
| echo "PWD=$PWD" | ||
| echo "ARCH=$ARCH" | ||
|
|
||
| CCACHE_PREBULT=${CCACHE_PREBULT:=1} | ||
| CCACHE_PREBUILT=${CCACHE_PREBUILT:=1} | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh boy, that one is embarrassing |
||
|
|
||
| # Repo and branch/tag/commit of ccache to download if we don't have it yet | ||
| CCACHE_REPO=${CCACHE_REPO:=https://github.com/ccache/ccache} | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,10 +6,10 @@ | |
| # OpenColorIO by hand! | ||
| ###################################################################### | ||
|
|
||
| set_cache (OpenColorIO_BUILD_VERSION 2.4.2 "OpenColorIO version for local builds") | ||
| set_cache (OpenColorIO_BUILD_VERSION 2.5.0 "OpenColorIO version for local builds") | ||
|
||
| set (OpenColorIO_GIT_REPOSITORY "https://github.com/AcademySoftwareFoundation/OpenColorIO") | ||
| set (OpenColorIO_GIT_TAG "v${OpenColorIO_BUILD_VERSION}") | ||
| set_cache (OpenColorIO_BUILD_SHARED_LIBS OFF #ON | ||
| set_cache (OpenColorIO_BUILD_SHARED_LIBS OFF | ||
| DOC "Should a local OpenColorIO build, if necessary, build shared libraries" ADVANCED) | ||
| # We would prefer to build a static OCIO, but haven't figured out how to make | ||
| # it all work with the static dependencies, it just makes things complicated | ||
|
|
@@ -24,9 +24,9 @@ unset (OPENCOLORIO_VERSION_MINOR) | |
| unset (OpenColorIO_DIR) | ||
|
|
||
| checked_find_package(pystring VERSION_MIN 1.1.3) | ||
| checked_find_package(expat REQUIRED VERSION_MIN 2.5) | ||
| checked_find_package(yaml-cpp REQUIRED VERSION_MIN 0.6.0) | ||
| checked_find_package(minizip-ng REQUIRED VERSION_MIN 3.0.0) | ||
| checked_find_package(expat REQUIRED VERSION_MIN 2.6) | ||
| checked_find_package(yaml-cpp REQUIRED VERSION_MIN 0.8.0) | ||
| checked_find_package(minizip-ng REQUIRED VERSION_MIN 4.0.10) | ||
|
|
||
| string (MAKE_C_IDENTIFIER ${OpenColorIO_BUILD_VERSION} OpenColorIO_VERSION_IDENT) | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.