https://kotlinlang.org logo
Title
s

siraf

02/17/2023, 1:33 PM
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 }}