Skip to content

android-cloud-check: SETUP_RUBY input to skip setup-ruby on runners that ship Ruby - #124

Merged
matejsemancik merged 1 commit into
mainfrom
feat/android-check-setup-ruby-input
Oct 7, 2026
Merged

matejsemancik merged 1 commit into
mainfrom
feat/android-check-setup-ruby-input

Conversation

@ssestak

@ssestak ssestak commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

android-cloud-check.yml gains an optional SETUP_RUBY input (boolean, default true) forwarded to the ruby switch that android-setup-environment already has. Default keeps today's behaviour. Mac callers pass false.

Why

With RUNS_ON: self-hosted (2.5.0, #121) the job dies in "Set up environment" before Java is even installed: ruby/setup-ruby wants its tool cache under /Users/runner, which the runner user (runnerm1) cannot create:

##[error]Error: EACCES: permission denied, mkdir '/Users/runner'

The mac image already ships Ruby on PATH (setup-ruby even logs that it removes it from PATH), so there is nothing to install there. The shared path had not been exercised on the mac until now.

Changes

  • SETUP_RUBY input, forwarded as ruby: ${{ inputs.SETUP_RUBY }}.

Notes

  • Caller side, mac runners:
    uses: futuredapp/.github/.github/workflows/android-cloud-check.yml@2.6.0
    with:
      RUNS_ON: self-hosted
      SETUP_RUBY: false
  • Follow-up candidate: the same switch on android-cloud-nightly-build.yml once that one moves to the mac runners.

🤖 Generated with Claude Code

https://claude.ai/code/session_015tyUXzyBw4NEtGE91PcZGC

…hat ship Ruby

android-setup-environment already has a `ruby` switch, but the reusable
workflow never forwarded it, so every caller runs ruby/setup-ruby. On the
self-hosted mac runners that step fails before Java is even set up:
setup-ruby writes its tool cache under /Users/runner, which the runner
user cannot create (EACCES), while the image already ships Ruby on PATH.
SETUP_RUBY (boolean, default true) keeps today's behaviour and lets the
mac callers pass false.
@matejsemancik
matejsemancik merged commit c3105bb into main Oct 7, 2026
2 checks passed
@matejsemancik
matejsemancik deleted the feat/android-check-setup-ruby-input branch October 7, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants