Add iOS build targets

This commit is contained in:
Tristan Hamilton 2021-02-10 15:45:16 +00:00 committed by Michael Bull
parent 754aa5aaa4
commit ccb9c5b3aa
4 changed files with 18 additions and 2 deletions

View File

@ -4,7 +4,7 @@ on: [ push, pull_request ]
jobs: jobs:
check: check:
runs-on: ubuntu-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -32,7 +32,7 @@ jobs:
publish: publish:
needs: check needs: check
if: github.ref == 'refs/heads/master' && github.event_name == 'push' && needs.check.result == 'success' if: github.ref == 'refs/heads/master' && github.event_name == 'push' && needs.check.result == 'success'
runs-on: ubuntu-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -71,6 +71,8 @@ subprojects {
browser() browser()
nodejs() nodejs()
} }
ios()
} }
} }

View File

@ -0,0 +1,11 @@
package com.github.michaelbull.result.coroutines
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.runBlocking
import kotlin.coroutines.CoroutineContext
actual fun runBlockingTest(context: CoroutineContext, testBody: suspend CoroutineScope.() -> Unit) {
runBlocking {
testBody(this)
}
}

View File

@ -0,0 +1,3 @@
package com.github.michaelbull.result
internal actual object BindException : Exception()