Skip to content

Commit f302d78

Browse files
committed
Fixed forked repo action runners
Signed-off-by: Nick Avramoussis <[email protected]>
1 parent a3439a0 commit f302d78

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

.github/workflows/ax.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
github.event_name != 'workflow_dispatch' ||
5050
github.event.inputs.type == 'all' ||
5151
github.event.inputs.type == 'linux'
52-
runs-on: ubuntu-20.04-8c-32g-300h
52+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-20.04-8c-32g-300h') || 'ubuntu-latest' }}
5353
name: >
5454
linux-ax:${{ matrix.config.image }}-cxx:${{ matrix.config.cxx }}-${{ matrix.config.build }}
5555
container:
@@ -158,7 +158,7 @@ jobs:
158158
if: |
159159
github.event_name == 'workflow_dispatch' &&
160160
github.event.inputs.type == 'grammar'
161-
runs-on: ubuntu-20.04-8c-32g-300h
161+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-20.04-8c-32g-300h') || 'ubuntu-latest' }}
162162
container:
163163
image: aswf/ci-openvdb:2022-clang11
164164
steps:

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
github.event_name != 'workflow_dispatch' ||
5757
github.event.inputs.type == 'all' ||
5858
github.event.inputs.type == 'linux'
59-
runs-on: ubuntu-20.04-8c-32g-300h
59+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-20.04-8c-32g-300h') || 'ubuntu-latest' }}
6060
name: >
6161
linux-vfx:${{ matrix.config.image }}-
6262
abi:${{ matrix.config.abi }}-
@@ -118,7 +118,7 @@ jobs:
118118
github.event_name != 'workflow_dispatch' ||
119119
github.event.inputs.type == 'all' ||
120120
github.event.inputs.type == 'win'
121-
runs-on: windows-2022-8c-32g-300h
121+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'windows-2022-8c-32g-300h') || 'windows-latest' }}
122122
name: windows-vc:${{ matrix.config.vc }}-type:${{ matrix.config.build }}
123123
env:
124124
VCPKG_DEFAULT_TRIPLET: ${{ matrix.config.vc }}

.github/workflows/houdini.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
# Check that valid github secrets have been set. This isn't needed to retrieve
4242
# the cache, but ensures that the job doens't start with an empty cache
4343
name: Verify Houdini Secrets
44-
runs-on: ubuntu-20.04-8c-32g-300h
44+
runs-on: ubuntu-latest
4545
outputs:
4646
HOUDINI_SECRETS: ${{ steps.check.outputs.HOUDINI_SECRETS }}
4747
steps:
@@ -59,7 +59,7 @@ jobs:
5959
if: >
6060
${{ needs.checksecret.outputs.HOUDINI_SECRETS == 'true' ||
6161
github.repository_owner == 'AcademySoftwareFoundation' }}
62-
runs-on: ubuntu-20.04-8c-32g-300h
62+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-20.04-8c-32g-300h') || 'ubuntu-latest' }}
6363
name: hou:${{ matrix.config.hou }}-vfx:${{ matrix.config.image }}-cxx:${{ matrix.config.cxx }}
6464
container:
6565
image: aswf/ci-base:${{ matrix.config.image }}

.github/workflows/nanovdb.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
github.event_name != 'workflow_dispatch' ||
5050
github.event.inputs.type == 'all' ||
5151
github.event.inputs.type == 'linux'
52-
runs-on: ubuntu-20.04-8c-32g-300h
52+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-20.04-8c-32g-300h') || 'ubuntu-latest' }}
5353
name: >
5454
linux-nanovdb:cxx:${{ matrix.config.cxx }}-${{ matrix.config.build }}
5555
container:
@@ -93,7 +93,7 @@ jobs:
9393
github.event_name != 'workflow_dispatch' ||
9494
github.event.inputs.type == 'all' ||
9595
github.event.inputs.type == 'win'
96-
runs-on: windows-2022-8c-32g-300h
96+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'windows-2022-8c-32g-300h') || 'windows-latest' }}
9797
env:
9898
VCPKG_DEFAULT_TRIPLET: ${{ matrix.config.vc }}
9999
visual_studio: "Visual Studio 17 2022"
@@ -175,7 +175,7 @@ jobs:
175175
github.event_name != 'workflow_dispatch' ||
176176
github.event.inputs.type == 'all' ||
177177
github.event.inputs.type == 'linux'
178-
runs-on: ubuntu-20.04-8c-32g-300h
178+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-20.04-8c-32g-300h') || 'ubuntu-latest' }}
179179
steps:
180180
- uses: actions/checkout@v3
181181
- name: install_gtest

.github/workflows/weekly.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
# download Houdini and cache it. The secrets are used in download_houdini.py
3131
checksecret:
3232
name: Verify Houdini Secrets
33-
runs-on: ubuntu-20.04-8c-32g-300h
33+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-20.04-8c-32g-300h') || 'ubuntu-latest' }}
3434
outputs:
3535
HOUDINI_SECRETS: ${{ steps.check.outputs.HOUDINI_SECRETS }}
3636
steps:
@@ -54,7 +54,7 @@ jobs:
5454
(github.event_name != 'workflow_dispatch' ||
5555
github.event.inputs.type == 'all' ||
5656
github.event.inputs.type == 'houdini')
57-
runs-on: ubuntu-20.04-8c-32g-300h
57+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-20.04-8c-32g-300h') || 'ubuntu-latest' }}
5858
name: linux-houdini:${{ matrix.config.houdini_version }}
5959
env:
6060
CXX: clang++
@@ -98,7 +98,7 @@ jobs:
9898
github.event_name != 'workflow_dispatch' ||
9999
github.event.inputs.type == 'all' ||
100100
github.event.inputs.type == 'extra'
101-
runs-on: ubuntu-20.04-8c-32g-300h
101+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-20.04-8c-32g-300h') || 'ubuntu-latest' }}
102102
name: linux-extra:${{ matrix.config.name }}
103103
container:
104104
# Can bump clang when AX is compatible with LLVM14
@@ -167,7 +167,7 @@ jobs:
167167
github.event_name != 'workflow_dispatch' ||
168168
github.event.inputs.type == 'all' ||
169169
github.event.inputs.type == 'ax'
170-
runs-on: ubuntu-20.04-8c-32g-300h
170+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-20.04-8c-32g-300h') || 'ubuntu-latest' }}
171171
name: >
172172
linux-ax:${{ matrix.config.image }}-cxx:${{ matrix.config.cxx }}-${{ matrix.config.build }}
173173
container:
@@ -261,7 +261,7 @@ jobs:
261261
github.event_name != 'workflow_dispatch' ||
262262
github.event.inputs.type == 'all' ||
263263
github.event.inputs.type == 'ax'
264-
runs-on: windows-2022-8c-32g-300h
264+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'windows-2022-8c-32g-300h') || 'windows-latest' }}
265265
name: windows-vc:${{ matrix.config.vc }}-type:${{ matrix.config.build }}
266266
env:
267267
VCPKG_DEFAULT_TRIPLET: ${{ matrix.config.vc }}
@@ -326,7 +326,7 @@ jobs:
326326
github.event_name != 'workflow_dispatch' ||
327327
github.event.inputs.type == 'all' ||
328328
github.event.inputs.type == 'blosc'
329-
runs-on: ubuntu-20.04-8c-32g-300h
329+
runs-on: ${{ (github.repository_owner == 'AcademySoftwareFoundation' && 'ubuntu-20.04-8c-32g-300h') || 'ubuntu-latest' }}
330330
name: linux-blosc:${{ matrix.blosc }}
331331
container:
332332
image: aswf/ci-base:2021

0 commit comments

Comments
 (0)