Skip to content

Commit c68f55a

Browse files
authored
Merge pull request #18 from feltech/work/OpenAssetIO/1351-cy24
Default to CY24 and drop support for CY22
2 parents 0254908 + 280fc67 commit c68f55a

File tree

6 files changed

+45
-82
lines changed

6 files changed

+45
-82
lines changed

.github/build_openassetio/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ runs:
1111
using: "composite"
1212
steps:
1313
- name: Checkout OpenAssetIO
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
repository: OpenAssetIO/OpenAssetIO
1717
path: openassetio-checkout

.github/build_openassetio_mediacreation/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ runs:
1111
using: "composite"
1212
steps:
1313
- name: Checkout OpenAssetIO-Mediacreation
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
repository: OpenAssetIO/OpenAssetIO-MediaCreation
1717
path: openassetio-mediacreation-checkout

.github/dependabot.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,3 @@ updates:
77
interval: "weekly"
88
commit-message:
99
prefix: "[CI]"
10-
ignore:
11-
# TODO(DF): Remove once no longer stuck on ASWF CY22 Docker image
12-
# for CI (causing nodejs glibc error).
13-
- dependency-name: "actions/checkout"
14-
update-types: ["version-update:semver-major"]

.github/workflows/test.yml

Lines changed: 41 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ name: Test
77
on:
88
pull_request:
99

10-
env:
11-
# Buy some more time to use the deprecated Node 16 (needed for GLIBC
12-
# version)
13-
# Upgrading to the CY23 Docker images will solve this longer term. See
14-
# https://github.com/OpenAssetIO/OpenAssetIO/issues/984#issuecomment-2210792734
15-
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
16-
1710
concurrency:
1811
group: ${{ github.workflow }}-${{ github.ref }}
1912
cancel-in-progress: true
@@ -25,7 +18,7 @@ jobs:
2518
container:
2619
image: ghcr.io/openassetio/openassetio-build
2720
steps:
28-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2922
- name: Build
3023
uses: ./.github/build_openassetio
3124

@@ -35,18 +28,18 @@ jobs:
3528
container:
3629
image: ghcr.io/openassetio/openassetio-build
3730
steps:
38-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3932
- name: Build
4033
uses: ./.github/build_openassetio_mediacreation
4134

4235
test-no-submodule:
4336
name: Test (OpenAssetIO as package, MediaCreation as package)
4437
runs-on: ubuntu-latest
4538
container:
46-
image: aswf/ci-vfxall:2022-clang14.3
39+
image: aswf/ci-base:2024
4740
needs: [build-openassetio, build-openassetio-mediacreation]
4841
steps:
49-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
5043

5144
- name: Get OpenAssetIO
5245
uses: actions/download-artifact@v3
@@ -79,7 +72,18 @@ jobs:
7972
image: ghcr.io/openassetio/openassetio-build
8073
needs: [build-openassetio-mediacreation]
8174
steps:
82-
- uses: actions/checkout@v3
75+
- uses: actions/checkout@v4
76+
77+
# TODO(DF): Remove once fixed upstream. Checkout in a container
78+
# doesn't use the container's user (appears to use 1001 rather
79+
# than root 0) and safe.directory setting is not applied properly.
80+
# So submodule update fails.
81+
# https://github.com/actions/checkout/issues/1169
82+
# The check itself was added to git in
83+
# https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8
84+
- name: Work around actions/checkout ownership bug
85+
run: |
86+
git config --system --add safe.directory $(pwd)
8387
8488
- name: Get OpenAssetIO-MediaCreation
8589
uses: actions/download-artifact@v3
@@ -109,10 +113,21 @@ jobs:
109113
name: Test (OpenAssetIO as package, MediaCreation as subproject)
110114
runs-on: ubuntu-latest
111115
container:
112-
image: aswf/ci-vfxall:2022-clang14.3
116+
image: aswf/ci-base:2024
113117
needs: [build-openassetio]
114118
steps:
115-
- uses: actions/checkout@v3
119+
- uses: actions/checkout@v4
120+
121+
# TODO(DF): Remove once fixed upstream. Checkout in a container
122+
# doesn't use the container's user (appears to use 1001 rather
123+
# than root 0) and safe.directory setting is not applied properly.
124+
# So submodule update fails.
125+
# https://github.com/actions/checkout/issues/1169
126+
# The check itself was added to git in
127+
# https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8
128+
- name: Work around actions/checkout ownership bug
129+
run: |
130+
git config --system --add safe.directory $(pwd)
116131
117132
- name: Get OpenAssetIO
118133
uses: actions/download-artifact@v3
@@ -146,7 +161,18 @@ jobs:
146161
container:
147162
image: ghcr.io/openassetio/openassetio-build
148163
steps:
149-
- uses: actions/checkout@v3
164+
- uses: actions/checkout@v4
165+
166+
# TODO(DF): Remove once fixed upstream. Checkout in a container
167+
# doesn't use the container's user (appears to use 1001 rather
168+
# than root 0) and safe.directory setting is not applied properly.
169+
# So submodule update fails.
170+
# https://github.com/actions/checkout/issues/1169
171+
# The check itself was added to git in
172+
# https://github.com/git/git/commit/f4aa8c8bb11dae6e769cd930565173808cbb69c8
173+
- name: Work around actions/checkout ownership bug
174+
run: |
175+
git config --system --add safe.directory $(pwd)
150176
151177
- name: Install Traitgen
152178
run: |

CMakeLists.txt

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,9 @@ option(OPENASSETIO_MEDIACREATIONTEST_ENABLE_SUBPROJECT
3131
option(OPENASSETIOTEST_ENABLE_PYTHON "Test Python bindings" ON)
3232
option(OPENASSETIOTEST_ENABLE_C "Test C bindings" ON)
3333

34-
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND
35-
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 5.0)
36-
option(OPENASSETIOTEST_GLIBCXX_USE_CXX11_ABI "For gcc, use the new C++11 library ABI" OFF)
37-
endif ()
38-
3934
if (CMAKE_TOOLCHAIN_FILE)
4035
message(STATUS "Using toolchain file = ${CMAKE_TOOLCHAIN_FILE}")
4136
endif ()
42-
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
43-
message(STATUS "New C++11 ABI for GCC = ${OPENASSETIOTEST_GLIBCXX_USE_CXX11_ABI}")
44-
endif ()
4537
message(STATUS "Testing OpenAssetIO as a subproject = ${OPENASSETIOTEST_ENABLE_OPENASSETIO_SUBPROJECT}")
4638
message(STATUS "Testing OpenAssetIO-MediaCreation as a subproject = "
4739
"${OPENASSETIOTEST_ENABLE_MEDIACREATION_SUBPROJECT}")
@@ -100,15 +92,6 @@ add_test(cpp.core test.cpp.core)
10092
target_link_libraries(test.cpp.core PRIVATE OpenAssetIO::openassetio-core)
10193
target_compile_features(test.cpp.core PRIVATE cxx_std_17)
10294

103-
# GCC's C++11 ABI toggle must match OpenAssetIO's settings.
104-
if (DEFINED OPENASSETIOTEST_GLIBCXX_USE_CXX11_ABI)
105-
if (OPENASSETIOTEST_GLIBCXX_USE_CXX11_ABI)
106-
target_compile_definitions(test.cpp.core PRIVATE _GLIBCXX_USE_CXX11_ABI=1)
107-
else ()
108-
target_compile_definitions(test.cpp.core PRIVATE _GLIBCXX_USE_CXX11_ABI=0)
109-
endif ()
110-
endif ()
111-
11295
if (WIN32 AND DEFINED OpenAssetIO_BINARY_DIR)
11396
set_tests_properties(cpp.core PROPERTIES ENVIRONMENT "PATH=${OpenAssetIO_BINARY_DIR_NATIVE}")
11497
endif ()
@@ -121,15 +104,6 @@ add_test(cpp.mediacreation test.cpp.mediacreation)
121104
target_link_libraries(test.cpp.mediacreation PRIVATE OpenAssetIO::openassetio-core OpenAssetIO-MediaCreation::openassetio-mediacreation)
122105
target_compile_features(test.cpp.mediacreation PRIVATE cxx_std_17)
123106

124-
# GCC's C++11 ABI toggle must match OpenAssetIO's settings.
125-
if (DEFINED OPENASSETIOTEST_GLIBCXX_USE_CXX11_ABI)
126-
if (OPENASSETIOTEST_GLIBCXX_USE_CXX11_ABI)
127-
target_compile_definitions(test.cpp.mediacreation PRIVATE _GLIBCXX_USE_CXX11_ABI=1)
128-
else ()
129-
target_compile_definitions(test.cpp.mediacreation PRIVATE _GLIBCXX_USE_CXX11_ABI=0)
130-
endif ()
131-
endif ()
132-
133107
if (WIN32 AND DEFINED OpenAssetIO_BINARY_DIR)
134108
set_tests_properties(cpp.mediacreation PROPERTIES ENVIRONMENT "PATH=${OpenAssetIO_BINARY_DIR_NATIVE}")
135109
endif ()
@@ -225,9 +199,9 @@ if (OPENASSETIOTEST_ENABLE_PYTHON)
225199
# Fix library search path on MacOS.
226200
if (APPLE)
227201
# The `Python::Python` target's link options are set to e.g
228-
# `@rpath/Python.framework/Versions/3.9/Python` but all our
202+
# `@rpath/Python.framework/Versions/3.10/Python` but all our
229203
# target's (CMake generated) @rpaths already contain
230-
# `Python.framework/Versions/3.9`. So add another RPATH with
204+
# `Python.framework/Versions/3.10`. So add another RPATH with
231205
# the framework subdirectories stripped. This then allows our
232206
# test target to find the Python library.
233207
set_target_properties(test.python.bridge PROPERTIES BUILD_RPATH ${Python_PREFIX}/../../..)

RELEASE_NOTES.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)