|
1 | 1 |
|
2 |
| -name: AX |
| 2 | +# name: AX |
3 | 3 |
|
4 |
| -on: |
5 |
| - push: |
6 |
| - branches: |
7 |
| - - 'master' |
8 |
| - - 'feature/**' |
9 |
| - - 'pr/**' |
10 |
| - paths-ignore: |
11 |
| - - 'CHANGES' |
12 |
| - - 'CODEOWNERS' |
13 |
| - - 'doc/**' |
14 |
| - - 'nanovdb/**' |
15 |
| - - 'openvdb_maya/**' |
16 |
| - - 'openvdb_houdini/**' |
17 |
| - - 'pendingchanges/**' |
18 |
| - - '**.md' |
19 |
| - pull_request: |
20 |
| - branches: |
21 |
| - - '**' |
22 |
| - paths-ignore: |
23 |
| - - 'CHANGES' |
24 |
| - - 'CODEOWNERS' |
25 |
| - - 'doc/**' |
26 |
| - - 'nanovdb/**' |
27 |
| - - 'openvdb_maya/**' |
28 |
| - - 'openvdb_houdini/**' |
29 |
| - - 'pendingchanges/**' |
30 |
| - - '**.md' |
31 |
| - schedule: |
32 |
| - # run this workflow every day 7am UTC |
33 |
| - - cron: '0 7 * * *' |
34 |
| - workflow_dispatch: |
35 |
| - inputs: |
36 |
| - type: |
37 |
| - description: 'The type of CI to run (all, mac, linux, grammar)' |
38 |
| - required: true |
39 |
| - default: 'all' |
| 4 | +# on: |
| 5 | +# push: |
| 6 | +# branches: |
| 7 | +# - 'master' |
| 8 | +# - 'feature/**' |
| 9 | +# - 'pr/**' |
| 10 | +# paths-ignore: |
| 11 | +# - 'CHANGES' |
| 12 | +# - 'CODEOWNERS' |
| 13 | +# - 'doc/**' |
| 14 | +# - 'nanovdb/**' |
| 15 | +# - 'openvdb_maya/**' |
| 16 | +# - 'openvdb_houdini/**' |
| 17 | +# - 'pendingchanges/**' |
| 18 | +# - '**.md' |
| 19 | +# pull_request: |
| 20 | +# branches: |
| 21 | +# - '**' |
| 22 | +# paths-ignore: |
| 23 | +# - 'CHANGES' |
| 24 | +# - 'CODEOWNERS' |
| 25 | +# - 'doc/**' |
| 26 | +# - 'nanovdb/**' |
| 27 | +# - 'openvdb_maya/**' |
| 28 | +# - 'openvdb_houdini/**' |
| 29 | +# - 'pendingchanges/**' |
| 30 | +# - '**.md' |
| 31 | +# schedule: |
| 32 | +# # run this workflow every day 7am UTC |
| 33 | +# - cron: '0 7 * * *' |
| 34 | +# workflow_dispatch: |
| 35 | +# inputs: |
| 36 | +# type: |
| 37 | +# description: 'The type of CI to run (all, mac, linux, grammar)' |
| 38 | +# required: true |
| 39 | +# default: 'all' |
40 | 40 |
|
41 |
| -# Allow subsequent pushes to the same PR or REF to cancel any previous jobs. |
42 |
| -concurrency: |
43 |
| - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
44 |
| - cancel-in-progress: true |
| 41 | +# # Allow subsequent pushes to the same PR or REF to cancel any previous jobs. |
| 42 | +# concurrency: |
| 43 | +# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 44 | +# cancel-in-progress: true |
45 | 45 |
|
46 |
| -defaults: |
47 |
| - run: |
48 |
| - shell: bash |
| 46 | +# defaults: |
| 47 | +# run: |
| 48 | +# shell: bash |
49 | 49 |
|
50 |
| -jobs: |
51 |
| - linux-ax: |
52 |
| - if: | |
53 |
| - github.event_name != 'workflow_dispatch' || |
54 |
| - github.event.inputs.type == 'all' || |
55 |
| - github.event.inputs.type == 'linux' |
56 |
| - runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-20.04-8c-32g-300h') || 'ubuntu-latest' }} |
57 |
| - name: > |
58 |
| - linux-ax:${{ matrix.config.image }}-cxx:${{ matrix.config.cxx }}-${{ matrix.config.build }} |
59 |
| - container: |
60 |
| - image: aswf/ci-openvdb:${{ matrix.config.image }} |
61 |
| - env: |
62 |
| - CXX: ${{ matrix.config.cxx }} |
63 |
| - CCACHE_DIR: /tmp/ccache |
64 |
| - strategy: |
65 |
| - matrix: |
66 |
| - # Only test unified builds (core+ax). weekly CI should test standalone |
67 |
| - config: |
68 |
| - - { image: '2023-clang15', cxx: 'clang++', build: 'Release', cmake: '' } |
69 |
| - - { image: '2023-clang15', cxx: 'g++', build: 'Release', cmake: '' } |
70 |
| - - { image: '2023-clang15', cxx: 'clang++', build: 'Debug', cmake: '' } |
71 |
| - - { image: '2022-clang11', cxx: 'clang++', build: 'Release', cmake: '' } |
72 |
| - - { image: '2022-clang11', cxx: 'g++', build: 'Release', cmake: '' } |
73 |
| - - { image: '2021-clang10', cxx: 'clang++', build: 'Release', cmake: '-DDISABLE_DEPENDENCY_VERSION_CHECKS=ON' } |
74 |
| - - { image: '2021-clang10', cxx: 'g++', build: 'Release', cmake: '-DDISABLE_DEPENDENCY_VERSION_CHECKS=ON' } |
75 |
| - fail-fast: false |
76 |
| - steps: |
77 |
| - - uses: actions/checkout@v3 |
78 |
| - - name: pybind11 |
79 |
| - #if: contains(matrix.config.image, '2023') == false |
80 |
| - run: ./ci/install_pybind11.sh 2.10.0 |
81 |
| - - name: timestamp |
82 |
| - id: timestamp |
83 |
| - run: echo "timestamp=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT |
84 |
| - - name: ccache |
85 |
| - # don't use ccache for debug builds |
86 |
| - if: matrix.config.build == 'Release' |
87 |
| - id: ccache |
88 |
| - uses: actions/cache@v3 |
89 |
| - with: |
90 |
| - path: /tmp/ccache |
91 |
| - key: linux-ax${{ matrix.config.image }}-${{ matrix.config.cxx }}-${{ steps.timestamp.outputs.timestamp }} |
92 |
| - restore-keys: linux-ax${{ matrix.config.image }}-${{ matrix.config.cxx }}- |
93 |
| - - name: build |
94 |
| - run: > |
95 |
| - ./ci/build.sh -v |
96 |
| - --build-type=${{ matrix.config.build }} |
97 |
| - --components='core,python,bin,axcore,axbin,axtest' |
98 |
| - --cargs=\" |
99 |
| - ${{ matrix.config.cmake }} |
100 |
| - -DOPENVDB_AX_TEST_CMD_DOWNLOADS=ON |
101 |
| - -DUSE_EXPLICIT_INSTANTIATION=OFF |
102 |
| - -DOPENVDB_CXX_STRICT=ON |
103 |
| - \" |
104 |
| - - name: test |
105 |
| - run: cd build && ctest -V |
106 |
| - - name: test_doxygen_examples |
107 |
| - run: ./ci/extract_test_examples.sh |
108 |
| - # Keep ccache light by stripping out any caches not accessed in the last day |
109 |
| - - name: ccache_clean |
110 |
| - if: matrix.config.build == 'Release' |
111 |
| - run: ccache --evict-older-than 1d |
| 50 | +# jobs: |
| 51 | +# linux-ax: |
| 52 | +# if: | |
| 53 | +# github.event_name != 'workflow_dispatch' || |
| 54 | +# github.event.inputs.type == 'all' || |
| 55 | +# github.event.inputs.type == 'linux' |
| 56 | +# runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-20.04-8c-32g-300h') || 'ubuntu-latest' }} |
| 57 | +# name: > |
| 58 | +# linux-ax:${{ matrix.config.image }}-cxx:${{ matrix.config.cxx }}-${{ matrix.config.build }} |
| 59 | +# container: |
| 60 | +# image: aswf/ci-openvdb:${{ matrix.config.image }} |
| 61 | +# env: |
| 62 | +# CXX: ${{ matrix.config.cxx }} |
| 63 | +# CCACHE_DIR: /tmp/ccache |
| 64 | +# strategy: |
| 65 | +# matrix: |
| 66 | +# # Only test unified builds (core+ax). weekly CI should test standalone |
| 67 | +# config: |
| 68 | +# - { image: '2023-clang15', cxx: 'clang++', build: 'Release', cmake: '' } |
| 69 | +# - { image: '2023-clang15', cxx: 'g++', build: 'Release', cmake: '' } |
| 70 | +# - { image: '2023-clang15', cxx: 'clang++', build: 'Debug', cmake: '' } |
| 71 | +# - { image: '2022-clang11', cxx: 'clang++', build: 'Release', cmake: '' } |
| 72 | +# - { image: '2022-clang11', cxx: 'g++', build: 'Release', cmake: '' } |
| 73 | +# - { image: '2021-clang10', cxx: 'clang++', build: 'Release', cmake: '-DDISABLE_DEPENDENCY_VERSION_CHECKS=ON' } |
| 74 | +# - { image: '2021-clang10', cxx: 'g++', build: 'Release', cmake: '-DDISABLE_DEPENDENCY_VERSION_CHECKS=ON' } |
| 75 | +# fail-fast: false |
| 76 | +# steps: |
| 77 | +# - uses: actions/checkout@v3 |
| 78 | +# - name: pybind11 |
| 79 | +# #if: contains(matrix.config.image, '2023') == false |
| 80 | +# run: ./ci/install_pybind11.sh 2.10.0 |
| 81 | +# - name: timestamp |
| 82 | +# id: timestamp |
| 83 | +# run: echo "timestamp=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT |
| 84 | +# - name: ccache |
| 85 | +# # don't use ccache for debug builds |
| 86 | +# if: matrix.config.build == 'Release' |
| 87 | +# id: ccache |
| 88 | +# uses: actions/cache@v3 |
| 89 | +# with: |
| 90 | +# path: /tmp/ccache |
| 91 | +# key: linux-ax${{ matrix.config.image }}-${{ matrix.config.cxx }}-${{ steps.timestamp.outputs.timestamp }} |
| 92 | +# restore-keys: linux-ax${{ matrix.config.image }}-${{ matrix.config.cxx }}- |
| 93 | +# - name: build |
| 94 | +# run: > |
| 95 | +# ./ci/build.sh -v |
| 96 | +# --build-type=${{ matrix.config.build }} |
| 97 | +# --components='core,python,bin,axcore,axbin,axtest' |
| 98 | +# --cargs=\" |
| 99 | +# ${{ matrix.config.cmake }} |
| 100 | +# -DOPENVDB_AX_TEST_CMD_DOWNLOADS=ON |
| 101 | +# -DUSE_EXPLICIT_INSTANTIATION=OFF |
| 102 | +# -DOPENVDB_CXX_STRICT=ON |
| 103 | +# \" |
| 104 | +# - name: test |
| 105 | +# run: cd build && ctest -V |
| 106 | +# - name: test_doxygen_examples |
| 107 | +# run: ./ci/extract_test_examples.sh |
| 108 | +# # Keep ccache light by stripping out any caches not accessed in the last day |
| 109 | +# - name: ccache_clean |
| 110 | +# if: matrix.config.build == 'Release' |
| 111 | +# run: ccache --evict-older-than 1d |
112 | 112 |
|
113 |
| - macos-ax: |
114 |
| - if: | |
115 |
| - github.event_name != 'workflow_dispatch' || |
116 |
| - github.event.inputs.type == 'all' || |
117 |
| - github.event.inputs.type == 'mac' |
118 |
| - runs-on: ${{ matrix.config.runner }} |
119 |
| - name: macos-cxx:${{ matrix.config.cxx }}-llvm:${{ matrix.config.llvm }}-${{ matrix.config.build }} |
120 |
| - env: |
121 |
| - CXX: ${{ matrix.config.cxx }} |
122 |
| - strategy: |
123 |
| - matrix: |
124 |
| - config: |
125 |
| - #@note llvm10 never got its own brew formula... |
126 |
| - # Last macos runner befor M1 (macos-14) |
127 |
| - - { runner: 'macos-13', cxx: 'clang++', build: 'Release', llvm: '12' } |
128 |
| - - { runner: 'macos-13', cxx: 'clang++', build: 'Release', llvm: '13' } |
129 |
| - fail-fast: false |
130 |
| - steps: |
131 |
| - - uses: actions/checkout@v3 |
132 |
| - - name: install_deps |
133 |
| - run: ./ci/install_macos.sh ${{ matrix.config.llvm }} |
134 |
| - - name: build |
135 |
| - run: > |
136 |
| - ./ci/build.sh -v |
137 |
| - --build-type=${{ matrix.config.build }} |
138 |
| - --components="core,python,bin,axcore,axbin,axtest" |
139 |
| - --cargs=\" |
140 |
| - -DOPENVDB_AX_TEST_CMD_DOWNLOADS=ON |
141 |
| - -DUSE_EXPLICIT_INSTANTIATION=OFF |
142 |
| - -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install |
143 |
| - -DLLVM_DIR=/opt/homebrew/opt/llvm@${{ matrix.config.llvm }}/lib/cmake/llvm |
144 |
| - \" |
145 |
| - - name: test |
146 |
| - run: cd build && ctest -V |
147 |
| - - name: test_doxygen_examples |
148 |
| - run: ./ci/extract_test_examples.sh |
| 113 | +# macos-ax: |
| 114 | +# if: | |
| 115 | +# github.event_name != 'workflow_dispatch' || |
| 116 | +# github.event.inputs.type == 'all' || |
| 117 | +# github.event.inputs.type == 'mac' |
| 118 | +# runs-on: ${{ matrix.config.runner }} |
| 119 | +# name: macos-cxx:${{ matrix.config.cxx }}-llvm:${{ matrix.config.llvm }}-${{ matrix.config.build }} |
| 120 | +# env: |
| 121 | +# CXX: ${{ matrix.config.cxx }} |
| 122 | +# strategy: |
| 123 | +# matrix: |
| 124 | +# config: |
| 125 | +# #@note llvm10 never got its own brew formula... |
| 126 | +# # Last macos runner befor M1 (macos-14) |
| 127 | +# - { runner: 'macos-13', cxx: 'clang++', build: 'Release', llvm: '12' } |
| 128 | +# - { runner: 'macos-13', cxx: 'clang++', build: 'Release', llvm: '13' } |
| 129 | +# fail-fast: false |
| 130 | +# steps: |
| 131 | +# - uses: actions/checkout@v3 |
| 132 | +# - name: install_deps |
| 133 | +# run: ./ci/install_macos.sh ${{ matrix.config.llvm }} |
| 134 | +# - name: build |
| 135 | +# run: > |
| 136 | +# ./ci/build.sh -v |
| 137 | +# --build-type=${{ matrix.config.build }} |
| 138 | +# --components="core,python,bin,axcore,axbin,axtest" |
| 139 | +# --cargs=\" |
| 140 | +# -DOPENVDB_AX_TEST_CMD_DOWNLOADS=ON |
| 141 | +# -DUSE_EXPLICIT_INSTANTIATION=OFF |
| 142 | +# -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install |
| 143 | +# -DLLVM_DIR=/opt/homebrew/opt/llvm@${{ matrix.config.llvm }}/lib/cmake/llvm |
| 144 | +# \" |
| 145 | +# - name: test |
| 146 | +# run: cd build && ctest -V |
| 147 | +# - name: test_doxygen_examples |
| 148 | +# run: ./ci/extract_test_examples.sh |
149 | 149 |
|
150 |
| - gen-grammar: |
151 |
| - if: | |
152 |
| - github.event_name == 'workflow_dispatch' && |
153 |
| - github.event.inputs.type == 'grammar' |
154 |
| - runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-20.04-8c-32g-300h') || 'ubuntu-latest' }} |
155 |
| - container: |
156 |
| - image: aswf/ci-openvdb:2022-clang11 |
157 |
| - steps: |
158 |
| - - uses: actions/checkout@v3 |
159 |
| - - name: build |
160 |
| - run: ./ci/build.sh -v --components=axgr --target=openvdb_ax_grammar --cargs=\"-DOPENVDB_AX_GRAMMAR_NO_LINES=ON\" |
161 |
| - - name: upload grammar |
162 |
| - uses: actions/upload-artifact@v2 |
163 |
| - with: |
164 |
| - name: ax_grammar |
165 |
| - path: ./build/openvdb_ax/openvdb_ax/openvdb_ax/grammar |
166 |
| - retention-days: 5 |
| 150 | +# gen-grammar: |
| 151 | +# if: | |
| 152 | +# github.event_name == 'workflow_dispatch' && |
| 153 | +# github.event.inputs.type == 'grammar' |
| 154 | +# runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-20.04-8c-32g-300h') || 'ubuntu-latest' }} |
| 155 | +# container: |
| 156 | +# image: aswf/ci-openvdb:2022-clang11 |
| 157 | +# steps: |
| 158 | +# - uses: actions/checkout@v3 |
| 159 | +# - name: build |
| 160 | +# run: ./ci/build.sh -v --components=axgr --target=openvdb_ax_grammar --cargs=\"-DOPENVDB_AX_GRAMMAR_NO_LINES=ON\" |
| 161 | +# - name: upload grammar |
| 162 | +# uses: actions/upload-artifact@v2 |
| 163 | +# with: |
| 164 | +# name: ax_grammar |
| 165 | +# path: ./build/openvdb_ax/openvdb_ax/openvdb_ax/grammar |
| 166 | +# retention-days: 5 |
0 commit comments