Skip to content

Commit c8eaad5

Browse files
Merge pull request #1579 from murraystevenson/platform26CI
CI : Update to GafferHQ/dependencies 12.0.0a3
2 parents 7cdaa46 + c1d3dfd commit c8eaad5

7 files changed

Lines changed: 74 additions & 37 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -30,69 +30,71 @@ jobs:
3030
# and then use `include` to define their settings.
3131

3232
name: [
33-
linux-platform24,
3433
linux-platform25,
35-
linux-debug-platform25,
36-
windows-platform25,
37-
windows-debug-platform25,
38-
macos-platform25
34+
linux-platform26,
35+
linux-debug-platform26,
36+
windows-platform26,
37+
windows-debug-platform26,
38+
macos-platform26
3939
]
4040

4141
include:
4242

43-
- name: linux-platform24
43+
- name: linux-platform25
4444
os: ubuntu-24.04
4545
buildType: RELEASE
46-
containerImage: ghcr.io/gafferhq/build/build:3.4.0
46+
containerImage: ghcr.io/gafferhq/build/build:4.0.0
4747
options: .github/workflows/main/options.posix
48-
dependenciesURL: https://github.com/GafferHQ/dependencies/releases/download/10.0.0/gafferDependencies-10.0.0-linux-gcc11.tar.gz
48+
dependenciesURL: https://github.com/GafferHQ/dependencies/releases/download/11.0.0/gafferDependencies-11.0.0-linux-platform25.tar.gz
4949
tests: testCore testCorePython testScene testImage testAlembic testUSD testVDB
5050
publish: true
5151
jobs: 4
52+
pythonABIVersion: "3.11"
53+
extraBuildArguments: CXXSTD=c++17
5254

53-
- name: linux-platform25
55+
- name: linux-platform26
5456
os: ubuntu-24.04
5557
buildType: RELEASE
56-
containerImage: ghcr.io/gafferhq/build/build:4.0.0
58+
containerImage: ghcr.io/gafferhq/build/build:5.0.0a1
5759
options: .github/workflows/main/options.posix
58-
dependenciesURL: https://github.com/GafferHQ/dependencies/releases/download/11.0.0a8/gafferDependencies-11.0.0a8-linux-platform25.tar.gz
60+
dependenciesURL: https://github.com/GafferHQ/dependencies/releases/download/12.0.0a3/gafferDependencies-12.0.0a3-linux-platform26.tar.gz
5961
tests: testCore testCorePython testScene testImage testAlembic testUSD testVDB
6062
publish: true
6163
jobs: 4
6264

63-
- name: linux-debug-platform25
65+
- name: linux-debug-platform26
6466
os: ubuntu-24.04
6567
buildType: DEBUG
66-
containerImage: ghcr.io/gafferhq/build/build:4.0.0
68+
containerImage: ghcr.io/gafferhq/build/build:5.0.0a1
6769
options: .github/workflows/main/options.posix
68-
dependenciesURL: https://github.com/GafferHQ/dependencies/releases/download/11.0.0a8/gafferDependencies-11.0.0a8-linux-platform25.tar.gz
70+
dependenciesURL: https://github.com/GafferHQ/dependencies/releases/download/12.0.0a3/gafferDependencies-12.0.0a3-linux-platform26.tar.gz
6971
tests: testCore testCorePython testScene testImage testAlembic testUSD testVDB
7072
publish: false
7173
jobs: 4
7274

73-
- name: windows-platform25
75+
- name: windows-platform26
7476
os: windows-2022
7577
buildType: RELEASE
7678
options: .github/workflows/main/options.windows
77-
dependenciesURL: https://github.com/GafferHQ/dependencies/releases/download/11.0.0a8/gafferDependencies-11.0.0a8-windows-platform25.zip
79+
dependenciesURL: https://github.com/GafferHQ/dependencies/releases/download/12.0.0a3/gafferDependencies-12.0.0a3-windows-platform26.zip
7880
tests: testCore testCorePython testScene testImage testAlembic testUSD testVDB
7981
publish: true
8082
jobs: 4
8183

82-
- name: windows-debug-platform25
84+
- name: windows-debug-platform26
8385
os: windows-2022
8486
buildType: RELWITHDEBINFO
8587
options: .github/workflows/main/options.windows
86-
dependenciesURL: https://github.com/GafferHQ/dependencies/releases/download/11.0.0a8/gafferDependencies-11.0.0a8-windows-platform25.zip
88+
dependenciesURL: https://github.com/GafferHQ/dependencies/releases/download/12.0.0a3/gafferDependencies-12.0.0a3-windows-platform26.zip
8789
tests: testCore testCorePython testScene testImage testAlembic testUSD testVDB
8890
publish: false
8991
jobs: 4
9092

91-
- name: macos-platform25
93+
- name: macos-platform26
9294
os: macos-15
9395
buildType: RELEASE
9496
options: .github/workflows/main/options.posix
95-
dependenciesURL: https://github.com/GafferHQ/dependencies/releases/download/11.0.0a8/gafferDependencies-11.0.0a8-macos-platform25.tar.gz
97+
dependenciesURL: https://github.com/GafferHQ/dependencies/releases/download/12.0.0a3/gafferDependencies-12.0.0a3-macos-platform26.tar.gz
9698
tests: testCore testCorePython testScene testImage testAlembic testUSD testVDB
9799
publish: true
98100
jobs: 3
@@ -101,20 +103,18 @@ jobs:
101103

102104
container: ${{ matrix.containerImage }}
103105

106+
env:
107+
CORTEX_PYTHON_ABI_VERSION: ${{ matrix.pythonABIVersion }}
108+
104109
steps:
105110

106111
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
107112

108-
- name: Install Windows SDK
109-
run: |
110-
curl.exe -L --output winsdksetup.exe --url https://download.microsoft.com/download/9/7/9/97982c1d-d687-41be-9dd3-6d01e52ceb68/windowssdk/winsdksetup.exe
111-
Start-Process ./winsdksetup.exe -ArgumentList "/Features OptionId.DesktopCPPx64 /Quiet /NoRestart" -NoNewWindow -Wait
112-
shell: pwsh
113-
if: runner.os == 'Windows'
114-
115-
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
113+
- uses: TheMrMilchmann/setup-msvc-dev@368ef7d1ee4d1171b31d4a7f67f4d954f903f5a9 # v4.1.0
116114
with:
117-
sdk: 10.0.20348.0
115+
sdk: 10.0.22621.0
116+
arch: x64
117+
if: runner.os == 'Windows'
118118

119119
- name: Install toolchain (Windows)
120120
run: |
@@ -178,20 +178,20 @@ jobs:
178178
179179
- name: Build
180180
run: |
181-
scons -j ${{ matrix.jobs }} BUILD_TYPE=${{ matrix.buildType }} OPTIONS=${{ matrix.options }} BUILD_CACHEDIR=sconsCache
181+
scons -j ${{ matrix.jobs }} BUILD_TYPE=${{ matrix.buildType }} OPTIONS=${{ matrix.options }} BUILD_CACHEDIR=sconsCache ${{ matrix.extraBuildArguments }}
182182
# Copy the config log for use in the "Debug Failures" step, because it
183183
# gets clobbered by the `scons test*` call below.
184184
cp config.log buildConfig.log
185185
186186
- name: Test
187187
run: |
188-
scons ${{ matrix.tests }} BUILD_TYPE=${{ matrix.buildType }} OPTIONS=${{ matrix.options }} BUILD_CACHEDIR=sconsCache
188+
scons ${{ matrix.tests }} BUILD_TYPE=${{ matrix.buildType }} OPTIONS=${{ matrix.options }} BUILD_CACHEDIR=sconsCache ${{ matrix.extraBuildArguments }}
189189
env:
190190
OCIO: ocio://studio-config-v1.0.0_aces-v1.3_ocio-v2.1
191191

192192
- name: Build Package
193193
run: |
194-
scons install BUILD_TYPE=${{ matrix.buildType }} OPTIONS=${{ matrix.options }} BUILD_CACHEDIR=sconsCache
194+
scons install BUILD_TYPE=${{ matrix.buildType }} OPTIONS=${{ matrix.options }} BUILD_CACHEDIR=sconsCache ${{ matrix.extraBuildArguments }}
195195
${{ env.PACKAGE_COMMAND }} ${{ env.CORTEX_BUILD_NAME }}.${{env.PACKAGE_EXTENSION}} ${{ env.CORTEX_BUILD_NAME }}
196196
if: matrix.publish
197197

‎.github/workflows/main/options.posix‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LIBPATH = libs
1919

2020
PYTHON = deps + "/bin/python"
2121

22-
pythonABIVersion = "3.11"
22+
pythonABIVersion = os.environ.get( "CORTEX_PYTHON_ABI_VERSION" ) or "3.13"
2323

2424
PYTHON_LINK_FLAGS = "-lpython" + pythonABIVersion
2525

‎Changes‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ Breaking Changes
1717
- MeshAlgo : Changed the output of `reverseWinding()`.
1818
- KDTree : Removed deprecated function signatures.
1919

20+
Build
21+
-----
22+
23+
- C++ : Updated to C++20.
24+
- CI : Updated to GafferHQ/dependencies 12.0.0a3.
25+
- GCC : Updated to 14.2.1 for Linux `platform26` builds.
26+
- Windows : Updated Windows SDK to version 10.0.22621.0.
27+
2028
10.7.x.x (relative to 10.7.4.1)
2129
========
2230

‎SConstruct‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ o.Add(
9999
o.Add(
100100
"CXXSTD",
101101
"The C++ standard to build against.",
102-
"c++17"
102+
"c++20"
103103
)
104104

105105
o.Add(
@@ -952,6 +952,7 @@ else:
952952
"/FC", # display full paths in diagnostics
953953
"/EHsc", # catch c++ exceptions only
954954
"/MP", # enable multiprocessing of builds
955+
"/utf-8", # Required for fmtlib
955956
"/std:$CXXSTD",
956957
]
957958
)
@@ -1276,6 +1277,10 @@ testEnvLibPath = testEnv.subst( testEnvLibPath )
12761277
if testEnv["PLATFORM"] == "darwin" :
12771278
testEnvLibPath = os.pathsep.join( [ "/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Resources/", testEnvLibPath ] )
12781279

1280+
if "g++" in os.path.basename( env["CXX"] ) and "clang++" not in os.path.basename( env["CXX"] ) :
1281+
# GCC 14 reports this warning from inlined std::atomic loads used by oneTBB in RefCountedThreadingTest.
1282+
testEnv.Append( CXXFLAGS = [ "-Wno-error=stringop-overflow" ] )
1283+
12791284
testEnv["ENV"][testEnv["TEST_LIBRARY_PATH_ENV_VAR"]] = os.pathsep.join( [ testEnv["ENV"].get(testEnv["TEST_LIBRARY_PATH_ENV_VAR"], ""), testEnvLibPath ] )
12801285
if testEnv["TEST_LIBRARY_PATH_ENV_VAR"] != libraryPathEnvVar :
12811286
testEnv["ENV"][libraryPathEnvVar] = os.pathsep.join( [ testEnv["ENV"].get(libraryPathEnvVar, ""), testEnvLibPath ] )

‎test/IECore/HeaderGenerator.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"""Unit test for HeaderGenerator binding"""
3838
import getpass
3939
import platform
40+
import sys
4041
import unittest
4142

4243
import IECore
@@ -49,6 +50,8 @@ def testHeader(self):
4950
header = IECore.HeaderGenerator.header()
5051
self.assertEqual( header['ieCoreVersion'].value, IECore.versionString() )
5152
( sysname, nodename, release, version, machine, processor ) = platform.uname()
53+
if sys.platform == "win32" :
54+
release = str( sys.getwindowsversion().major )
5255
self.assertEqual( header["host"]["systemName"].value, sysname )
5356
self.assertEqual( header["host"]["nodeName"].value, nodename )
5457
self.assertEqual( header["host"]["systemRelease"].value, release )

‎test/IECoreImage/ImageReaderTest.py‎

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
##########################################################################
3434

3535
import os
36+
import pathlib
3637
import sys
3738
import unittest
3839
import imath
@@ -216,9 +217,9 @@ def testIncompleteImage( self ) :
216217

217218
def testHeaderToBlindData( self ) :
218219

220+
filePath = pathlib.Path( "test" ) / "IECoreImage" / "data" / "exr" / "uvMap.512x256.exr"
219221
dictHeader = {
220222
'channelNames': IECore.StringVectorData( [ "R", "G", "B" ] ),
221-
'oiio:ColorSpace': IECore.StringData( "lin_rec709" if IECoreImage.OpenImageIOAlgo.version() >= 30000 else "Linear" ),
222223
'compression': IECore.StringData( "piz" ),
223224
'screenWindowCenter': IECore.V2fData( imath.V2f(0,0) ),
224225
'displayWindow': IECore.Box2iData( imath.Box2i( imath.V2i(0,0), imath.V2i(511,255) ) ),
@@ -233,7 +234,18 @@ def testHeaderToBlindData( self ) :
233234
dictHeader["openexr:lineOrder"] = IECore.StringData( "increasingY" )
234235
dictHeader["screenWindowCenter"] = IECore.V2fData( imath.V2f( 0 ) )
235236

236-
r = IECore.Reader.create( os.path.join( "test", "IECoreImage", "data", "exr", "uvMap.512x256.exr" ) )
237+
if IECoreImage.OpenImageIOAlgo.version() < 30000 :
238+
dictHeader["oiio:ColorSpace"] = IECore.StringData( "Linear" )
239+
elif IECoreImage.OpenImageIOAlgo.version() < 30104 :
240+
dictHeader["oiio:ColorSpace"] = IECore.StringData( "lin_rec709" )
241+
242+
if IECoreImage.OpenImageIOAlgo.version() >= 30200 :
243+
dictHeader["oiio:RowsPerChunk"] = IECore.IntData( 32 )
244+
if IECoreImage.OpenImageIOAlgo.version() >= 30202 :
245+
dictHeader["oiio:SourcePath"] = IECore.StringData( str( filePath ) )
246+
dictHeader["oiio:SourceFileFormat"] = IECore.StringData( "openexr" )
247+
248+
r = IECore.Reader.create( str( filePath ) )
237249
header = r.readHeader()
238250
self.assertEqual( header, IECore.CompoundObject(dictHeader) )
239251

@@ -264,6 +276,11 @@ def testTimeCodeInHeader( self ) :
264276
self.assertEqual( header["smpte:TimeCode"], td )
265277

266278
img3 = r2.read()
279+
if IECoreImage.OpenImageIOAlgo.version() >= 30202 :
280+
del img.blindData()["oiio:SourcePath"]
281+
del img2.blindData()["oiio:SourcePath"]
282+
del img3.blindData()["oiio:SourcePath"]
283+
267284
self.assertTrue( "smpte:TimeCode" in img3.blindData() )
268285
self.assertEqual( img3.blindData()["smpte:TimeCode"], td )
269286
del img3.blindData()["Software"]

‎test/IECoreImage/ImageWriterTest.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,15 @@ def testBlindDataToHeader( self ) :
415415
imgNew = r.read()
416416
imgBlindData = imgNew.blindData()
417417
# eliminate default header info that comes from OIIO
418-
del imgBlindData['oiio:ColorSpace']
418+
if IECoreImage.OpenImageIOAlgo.version() < 30104 :
419+
del imgBlindData['oiio:ColorSpace']
419420
if IECoreImage.OpenImageIOAlgo.version() >= 20206 :
420421
del imgBlindData['oiio:subimages']
421422
if IECoreImage.OpenImageIOAlgo.version() >= 30000 :
422423
del imgBlindData["openexr:lineOrder"]
424+
if IECoreImage.OpenImageIOAlgo.version() >= 30202 :
425+
del imgBlindData["oiio:SourcePath"]
426+
del imgBlindData["oiio:SourceFileFormat"]
423427
del imgBlindData['compression']
424428
del imgBlindData['PixelAspectRatio']
425429
del imgBlindData['displayWindow']

0 commit comments

Comments
 (0)