Skip to content

Commit

Permalink
Bugfix/configuration (#27)
Browse files Browse the repository at this point in the history
Fixes for release process

### What's done:
- changed workflow scripts
  • Loading branch information
orchestr7 authored May 11, 2021
1 parent 45177ae commit 884f587
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
os: [ windows-latest, macos-latest ] # ubuntu-latest, ]
steps:
- name: Checkout
uses: actions/[email protected]
Expand Down
12 changes: 9 additions & 3 deletions ktoml-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ kotlin {
}
}
}
linuxX64()
mingwX64()
macosX64()

val os = org.gradle.nativeplatform.platform.internal.DefaultNativePlatform.getCurrentOperatingSystem()
// Create a target for the host platform.
when {
os.isLinux -> linuxX64()
os.isWindows -> mingwX64()
os.isMacOsX -> macosX64()
else -> throw GradleException("Host OS '${os.name}' is not supported in Kotlin/Native $project.")
}

sourceSets {
val commonMain by getting {
Expand Down

0 comments on commit 884f587

Please sign in to comment.