Skip to content

Commit 85b8301

Browse files
author
Norman Meier
committed
fix(ci): set ImageOS on self-hosted runners
Signed-off-by: Norman Meier <[email protected]>
1 parent aa2361f commit 85b8301

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/ios.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
# optimized WIP
4545
#
4646
# TODO: use a github action secret to pass the builder strategy dynamically
47-
node .github/workflows/mac-runner-matrix-builder.js github
47+
node .github/workflows/mac-runner-matrix-builder.js dc4
4848
4949
build:
5050
needs: mac_runner_matrix_builder
@@ -77,7 +77,18 @@ jobs:
7777
with:
7878
node-version: ${{ matrix.node }}
7979

80+
# ImageOS is required by this step but not set on self-hosted runners
8081
- uses: ruby/setup-ruby@v1
82+
if: ${{ matrix.selfhosted }}
83+
with:
84+
working-directory: rn
85+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
86+
env:
87+
ImageOS: macos12
88+
89+
# Use inherited ImageOS on github runners
90+
- uses: ruby/setup-ruby@v1
91+
if: ${{ !matrix.selfhosted }}
8192
with:
8293
working-directory: rn
8394
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

0 commit comments

Comments
 (0)