Skip to content

Commit 664dc5c

Browse files
committed
CI updates
Signed-off-by: Nick Avramoussis <4256455+Idclip@users.noreply.github.com>
1 parent a46f498 commit 664dc5c

File tree

4 files changed

+39
-20
lines changed

4 files changed

+39
-20
lines changed

.github/workflows/ax.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
matrix:
6262
# Only test unified builds (core+ax). weekly CI should test standalone
6363
config:
64+
- { image: '2023-clang15', cxx: 'clang++', build: 'Release', cmake: '' }
65+
- { image: '2023-clang15', cxx: 'g++', build: 'Release', cmake: '' }
6466
- { image: '2022-clang11', cxx: 'clang++', build: 'Debug', cmake: '' }
6567
- { image: '2022-clang11', cxx: 'clang++', build: 'Release', cmake: '' }
6668
- { image: '2022-clang11', cxx: 'g++', build: 'Release', cmake: '' }

.github/workflows/build.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,18 @@ jobs:
7070
strategy:
7171
matrix:
7272
config:
73-
- { cxx: clang++, image: '2022-clang11', abi: '10', build: 'Release', cmake: '' }
74-
- { cxx: clang++, image: '2022-clang11', abi: '10', build: 'Debug' , cmake: '' }
75-
- { cxx: g++, image: '2022-clang11', abi: '10', build: 'Release', cmake: '' }
76-
- { cxx: clang++, image: '2022-clang11', abi: '9', build: 'Release', cmake: '' }
77-
- { cxx: g++, image: '2022-clang11', abi: '9', build: 'Release', cmake: '' }
78-
- { cxx: clang++, image: '2021', abi: '8', build: 'Release', cmake: '-DDISABLE_DEPENDENCY_VERSION_CHECKS=ON' }
79-
- { cxx: g++, image: '2021', abi: '8', build: 'Release', cmake: '-DDISABLE_DEPENDENCY_VERSION_CHECKS=ON' }
73+
# @note we specifically use clang15.0 (not clang15) here as the newest
74+
# versions of the clang15.X containers have some issues with the GLFW
75+
# installation
76+
- { cxx: clang++, image: '2023-clang15.0', abi: '10', build: 'Release', cmake: '' }
77+
- { cxx: g++, image: '2023-clang15.0', abi: '10', build: 'Release', cmake: '' }
78+
- { cxx: clang++, image: '2022-clang11', abi: '10', build: 'Release', cmake: '' }
79+
- { cxx: clang++, image: '2022-clang11', abi: '10', build: 'Debug' , cmake: '' }
80+
- { cxx: g++, image: '2022-clang11', abi: '10', build: 'Release', cmake: '' }
81+
- { cxx: clang++, image: '2022-clang11', abi: '9', build: 'Release', cmake: '' }
82+
- { cxx: g++, image: '2022-clang11', abi: '9', build: 'Release', cmake: '' }
83+
- { cxx: clang++, image: '2021', abi: '8', build: 'Release', cmake: '-DDISABLE_DEPENDENCY_VERSION_CHECKS=ON' }
84+
- { cxx: g++, image: '2021', abi: '8', build: 'Release', cmake: '-DDISABLE_DEPENDENCY_VERSION_CHECKS=ON' }
8085
fail-fast: false
8186
steps:
8287
- uses: actions/checkout@v3

.github/workflows/weekly.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- { houdini_version: '19.5', houdini_version_str: '19_5' }
6868
fail-fast: false
6969
container:
70-
image: aswf/ci-base:2021
70+
image: aswf/ci-base:2023
7171
steps:
7272
- uses: actions/checkout@v3
7373
- name: timestamp
@@ -128,31 +128,31 @@ jobs:
128128
- name: test
129129
run: cd build && ctest -V
130130

131-
# Test EXR 3 on MacOS
131+
# Test latest dependencies, latest compilers and options through homebrew on macos
132132
macos-latest:
133133
if: |
134134
github.event_name != 'workflow_dispatch' ||
135135
github.event.inputs.type == 'all' ||
136136
github.event.inputs.type == 'mac'
137137
runs-on: macos-12
138-
env:
139-
CXX: clang++
138+
strategy:
139+
matrix:
140+
config:
141+
- { brew_compiler: gcc@13, cmake: '-D CMAKE_CXX_COMPILER=/usr/local/opt/gcc@13/bin/g++-13' }
142+
- { brew_compiler: llvm@16, cmake: '-D CMAKE_CXX_COMPILER=/usr/local/opt/llvm@16/bin/clang++' }
143+
fail-fast: false
140144
steps:
141145
- uses: actions/checkout@v3
142146
- name: install
143147
shell: bash
144-
# brew boost-python3 installs a "Keg-only" version of python which is
145-
# not installed to PATH. We must manually provide the location of the
146-
# required python installation to CMake through a hint variable which
147-
# is exported in install_macos.sh
148-
run: ./ci/install_macos.sh latest
148+
run: ./ci/install_macos.sh latest ${{ matrix.config.brew_compiler }}
149149
- name: build
150150
shell: bash
151151
run: >
152152
./ci/build.sh -v
153153
--build-type=Release
154154
--components=\"core,python,bin,view,render,test\"
155-
--cargs=\"-DOPENVDB_CXX_STRICT=OFF\"
155+
--cargs=\"-DOPENVDB_CXX_STRICT=OFF -DCMAKE_CXX_STANDARD=20 ${{ matrix.config.cmake }}\"
156156
- name: test
157157
shell: bash
158158
run: cd build && ctest -V
@@ -232,8 +232,9 @@ jobs:
232232
strategy:
233233
matrix:
234234
config:
235-
- { cxx: 'clang++', build: 'Release', llvm: '14', dir: '@14' }
236-
- { cxx: 'clang++', build: 'Release', llvm: 'latest', dir: '' }
235+
- { cxx: 'clang++', build: 'Release', llvm: '14' }
236+
- { cxx: 'clang++', build: 'Release', llvm: '15' }
237+
#- { cxx: 'clang++', build: 'Release', llvm: '16' } - not supported yet
237238
fail-fast: false
238239
steps:
239240
- uses: actions/checkout@v2
@@ -247,7 +248,7 @@ jobs:
247248
--cargs=\"
248249
-DOPENVDB_AX_TEST_CMD_DOWNLOADS=ON
249250
-DUSE_EXPLICIT_INSTANTIATION=OFF
250-
-DLLVM_DIR=/usr/local/opt/llvm${{ matrix.config.dir }}/lib/cmake/llvm
251+
-DLLVM_DIR=/usr/local/opt/llvm@${{ matrix.config.llvm }}/lib/cmake/llvm
251252
\"
252253
- name: test
253254
run: cd build && ctest -V

ci/install_macos.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
set -x
44

55
brew update
6+
7+
if [ ! -z $2 ]; then
8+
if [[ $2 == "gcc"* || $2 == "llvm"* ]]; then
9+
brew install $2
10+
else
11+
# don't silently succeed
12+
echo "Unknown compiler type/version for second argument to install_macos.sh: $2"
13+
exit -1
14+
fi
15+
fi
16+
617
brew install bash gnu-getopt # for CI scripts
718
brew install cmake
819
brew install boost

0 commit comments

Comments
 (0)