We have configured/uploaded our self-hosted MacOS ...
# touchlab-tools
s
We have configured/uploaded our self-hosted MacOS x64 runner into kmm-bridge repo, is it possible to run Github actions on it. What is the way to use “runs-on” in yml file? This is the default yml file that comes along with the kmm-bridge template and is working fine. Now, I want to switch from Github’s runner to my own one, I found that I need to use
runs-on
. Tried putting it in each place of the yml, with and without
steps
,
env
,
with
etc. and each time the Github Action fails. Did anyone else use his own runner, if yes, please write where did you put the
runs-on
line, thanks.
name: KMM Bridge/iOS Publish
on:
workflow_dispatch:
jobs:
call-kmmbridge-publish:
uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/faktorybuildbranches.yml@v0.6
secrets:
PODSPEC_SSH_KEY: ${{ secrets.PODSPEC_SSH_KEY }}
This is one of the ways I tried (adding runs-on right below the job name):
jobs:
call-kmmbridge-publish:
runs-on: self-hosted
steps:
- uses: touchlab/KMMBridgeGithubWorkflow/.github/workflows/faktorybuildbranches.yml@v0.6
with:
PODSPEC_SSH_KEY: ${{ secrets.PODSPEC_SSH_KEY }}
j
In case anyone finds this through search, like I did: it's not possible to set
runs-on
because this is a reusable workflow, which set the runners itself in its steps. But, Touchlab made a property to set the runner and it passes it on to the actual steps (see
runsOn
in https://github.com/touchlab/KMMBridgeGithubWorkflow/blob/main/.github/workflows/faktorybuildautoversion.yml). It's used like this:
Copy code
jobs:
  call-kmmbridge-publish:
    with:
      runsOn: your-runner-name
Unfortunately, GH doesn't allow using your own runners so this useful setting isn't much helpful.
Called workflows cannot be queued onto self-hosted runners across organizations/enterprises