Skip to content

Commit

Permalink
fix(ci): set ImageOS on self-hosted runners
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
Norman Meier committed Feb 18, 2022
1 parent aa2361f commit 6c51879
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
# optimized WIP
#
# TODO: use a github action secret to pass the builder strategy dynamically
node .github/workflows/mac-runner-matrix-builder.js github
node .github/workflows/mac-runner-matrix-builder.js random
build:
needs: mac_runner_matrix_builder
Expand Down Expand Up @@ -77,7 +77,18 @@ jobs:
with:
node-version: ${{ matrix.node }}

# ImageOS is required by this step but not set on self-hosted runners
- uses: ruby/setup-ruby@v1
if: ${{ matrix.selfhosted }}
with:
working-directory: rn
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
env:
ImageOS: macos12

# Use inherited ImageOS on github runners
- uses: ruby/setup-ruby@v1
if: ${{ !matrix.selfhosted }}
with:
working-directory: rn
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
Expand Down

0 comments on commit 6c51879

Please sign in to comment.