Skip to content

Commit a8d9014

Browse files
authored
ci: Clarify when and where the wheels workflow will run
It's not super intuitive what the "github.event_name != 'schedule' || github.repository == 'AcademySoftwareFoundation/OpenImageIO'" conditionals are doing when considered on their own; so clarify in a comment at the top of the workflow that the wheels workflow will run on forks when submitting a PR that modifies Python-related files; OR it will run according to a nightly schedule ONLY on the official upstream ASWF repo. Signed-off-by: zachlewis <[email protected]>
1 parent 1da442a commit a8d9014

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/wheel.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# SPDX-License-Identifier: Apache-2.0
22
# Copyright Contributors to the OpenImageIO Project.
33
#
4+
# This workflow will run on under two independent conditions:
5+
# 1) On the official AcademySoftwareFoundation repo, according to a nightly schedule.
6+
# 2) On forks, when submitting a PR that modifies Python-related files.
47

58
name: Wheel
69

@@ -41,7 +44,6 @@ jobs:
4144
sdist:
4245
name: Build SDist
4346
runs-on: ubuntu-latest
44-
# Don't run on OIIO forks
4547
if: |
4648
github.event_name != 'schedule' ||
4749
github.repository == 'AcademySoftwareFoundation/OpenImageIO'
@@ -68,7 +70,6 @@ jobs:
6870
linux:
6971
name: Build wheels on Linux
7072
runs-on: ubuntu-latest
71-
# Don't run on OIIO forks
7273
if: |
7374
github.event_name != 'schedule' ||
7475
github.repository == 'AcademySoftwareFoundation/OpenImageIO'
@@ -157,7 +158,6 @@ jobs:
157158
linux-arm:
158159
name: Build wheels on Linux ARM
159160
runs-on: ubuntu-latest
160-
# Don't run on OIIO forks
161161
if: |
162162
github.event_name != 'schedule' ||
163163
github.repository == 'AcademySoftwareFoundation/OpenImageIO'
@@ -228,7 +228,6 @@ jobs:
228228
macos:
229229
name: Build wheels on macOS
230230
runs-on: macos-13
231-
# Don't run on OIIO forks
232231
if: |
233232
github.event_name != 'schedule' ||
234233
github.repository == 'AcademySoftwareFoundation/OpenImageIO'
@@ -286,7 +285,6 @@ jobs:
286285
macos-arm:
287286
name: Build wheels on macOS ARM
288287
runs-on: macos-14
289-
# Don't run on OIIO forks
290288
if: |
291289
github.event_name != 'schedule' ||
292290
github.repository == 'AcademySoftwareFoundation/OpenImageIO'
@@ -343,7 +341,6 @@ jobs:
343341
windows:
344342
name: Build wheels on Windows
345343
runs-on: windows-2022
346-
# Don't run on OIIO forks
347344
if: |
348345
github.event_name != 'schedule' ||
349346
github.repository == 'AcademySoftwareFoundation/OpenImageIO'

0 commit comments

Comments
 (0)