1818 - ' pendingchanges/**'
1919 - ' **.md'
2020 pull_request :
21+ # Add 'ready_for_review' to run CI when a draft PR is marked ready.
22+ types : [opened, synchronize, reopened, ready_for_review]
2123 branches :
2224 - ' **'
2325 paths-ignore :
@@ -44,10 +46,12 @@ concurrency:
4446
4547jobs :
4648 linux-nanovdb :
49+ # push OR non-draft PR OR matching manual run
4750 if : |
48- github.event_name != 'workflow_dispatch' ||
49- github.event.inputs.type == 'all' ||
50- github.event.inputs.type == 'linux'
51+ (github.event_name == 'push' ||
52+ (github.event_name == 'pull_request' && github.event.pull_request.draft == false) ||
53+ (github.event_name == 'workflow_dispatch' &&
54+ (github.event.inputs.type == 'all' || github.event.inputs.type == 'linux')))
5155 runs-on : ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-22.04-8c-32g-300h') || 'ubuntu-latest' }}
5256 name : >
5357 linux-nanovdb:cxx:${{ matrix.config.cxx }}-${{ matrix.config.build }}
9296
9397 windows-nanovdb :
9498 if : |
95- github.event_name != 'workflow_dispatch' ||
96- github.event.inputs.type == 'all' ||
97- github.event.inputs.type == 'win'
99+ (github.event_name == 'push' ||
100+ (github.event_name == 'pull_request' && github.event.pull_request.draft == false) ||
101+ (github.event_name == 'workflow_dispatch' &&
102+ (github.event.inputs.type == 'all' || github.event.inputs.type == 'win')))
98103 runs-on : ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'windows-2022-8c-32g-300h') || 'windows-latest' }}
99104 env :
100105 VCPKG_DEFAULT_TRIPLET : ' x64-windows'
@@ -139,9 +144,10 @@ jobs:
139144
140145 macos-nanovdb :
141146 if : |
142- github.event_name != 'workflow_dispatch' ||
143- github.event.inputs.type == 'all' ||
144- github.event.inputs.type == 'mac'
147+ (github.event_name == 'push' ||
148+ (github.event_name == 'pull_request' && github.event.pull_request.draft == false) ||
149+ (github.event_name == 'workflow_dispatch' &&
150+ (github.event.inputs.type == 'all' || github.event.inputs.type == 'mac')))
145151 runs-on : ${{ matrix.config.runner }}
146152 env :
147153 CXX : ${{ matrix.config.cxx }}
@@ -168,9 +174,10 @@ jobs:
168174
169175 nanovdb-lite :
170176 if : |
171- github.event_name != 'workflow_dispatch' ||
172- github.event.inputs.type == 'all' ||
173- github.event.inputs.type == 'linux'
177+ (github.event_name == 'push' ||
178+ (github.event_name == 'pull_request' && github.event.pull_request.draft == false) ||
179+ (github.event_name == 'workflow_dispatch' &&
180+ (github.event.inputs.type == 'all' || github.event.inputs.type == 'linux')))
174181 runs-on : ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-22.04-8c-32g-300h') || 'ubuntu-latest' }}
175182 container :
176183 image : aswf/ci-openvdb:2024-clang17.2
0 commit comments