Skip to content

Commit

Permalink
Attempt yet another configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
deusaquilus committed Feb 4, 2024
1 parent cdb3c22 commit 36c6d52
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- run: ./gradlew ${{ matrix.build_command }} -Pplatform=${{ matrix.platform }} --stacktrace -Pnosign
- run: ./gradlew ${{ matrix.build_command }} -Pplatform=${{ matrix.platform }} --stacktrace -Pnosign -PisCI
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ jobs:
include:
- os: ubuntu-latest
# On ubuntu publish everything you can i.e. the linuxX64 and jvm binaries
publish_command: publishAllPublicationsToOss
publish_command: build publishAllPublicationsToOss
platform: linux
- os: macOS-latest
publish_command: publishAllPublicationsToOss -x :pprint-kotlin:publishAllPublicationsToOss
publish_command: build publishAllPublicationsToOss -x :pprint-kotlin:build -x :pprint-kotlin:publishAllPublicationsToOss
platform: mac
- os: windows-latest
publish_command: publishMingwX64PublicationToOss -x :pprint-kotlin:publishMingwX64PublicationToOss
publish_command: build publishMingwX64PublicationToOss -x :pprint-kotlin:build -x :pprint-kotlin:publishMingwX64PublicationToOss
platform: windows
env:
SONATYPE_REPOSITORY_ID: ${{ needs.create_staging_repository.outputs.repository_id }}
SONATYPE_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }}
SONATYPE_PASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }}
SONATYPE_PASSWORD: ${{ secrets.ORG_GRADLE_PROJESuccubus Academy EP4 RelasedCT_SONATYPEPASSWORD }}
NEW_SIGNING_KEY_ID_BASE64: ${{ secrets.NEW_SIGNING_KEY_ID_BASE64 }}
NEW_SIGNING_KEY_ID_BASE64_PASS: ${{ secrets.NEW_SIGNING_KEY_ID_BASE64_PASS }}
steps:
Expand All @@ -52,4 +52,4 @@ jobs:
distribution: 'adopt'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- run: ./gradlew build ${{ matrix.publish_command }} -Pplatform=${{ matrix.platform }} -no-daemon --no-parallel -x test --stacktrace
- run: ./gradlew ${{ matrix.publish_command }} -Pplatform=${{ matrix.platform }} -PisCI -no-daemon --no-parallel --stacktrace
10 changes: 4 additions & 6 deletions pprint-kotlin-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
import org.jetbrains.dokka.gradle.AbstractDokkaTask
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl

plugins {
Expand All @@ -13,7 +11,7 @@ plugins {
}

kotlin {
val isLocal = project.hasProperty("local")
val isCI = project.hasProperty("isCI")
val platform =
if (project.hasProperty("platform"))
project.property("platform")
Expand All @@ -23,7 +21,7 @@ kotlin {
val isMac = platform == "mac"
val isWindows = platform == "windows"

if (isLinux || isLocal) {
if (isLinux || !isCI) {
jvm {
jvmToolchain(11)
}
Expand All @@ -46,7 +44,7 @@ kotlin {
androidNativeArm64()
}

if (isMac || isLocal) {
if (isMac || !isCI) {
macosX64()
macosArm64()
iosX64()
Expand All @@ -59,7 +57,7 @@ kotlin {
watchosArm64()
}

if (isWindows || isLocal) {
if (isWindows || !isCI) {
mingwX64()
}

Expand Down
8 changes: 4 additions & 4 deletions pprint-kotlin-kmp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
}

kotlin {
val isLocal = project.hasProperty("local")
val isCI = project.hasProperty("isCI")
val platform =
if (project.hasProperty("platform"))
project.property("platform")
Expand All @@ -22,7 +22,7 @@ kotlin {
val isMac = platform == "mac"
val isWindows = platform == "windows"

if (isLinux || isLocal) {
if (isLinux || !isCI) {
jvm {
jvmToolchain(11)
}
Expand All @@ -45,7 +45,7 @@ kotlin {
androidNativeArm64()
}

if (isMac || isLocal) {
if (isMac || !isCI) {
macosX64()
macosArm64()
iosX64()
Expand All @@ -58,7 +58,7 @@ kotlin {
watchosArm64()
}

if (isWindows || isLocal) {
if (isWindows || !isCI) {
mingwX64()
}

Expand Down

0 comments on commit 36c6d52

Please sign in to comment.