Skip to content

Commit

Permalink
Try a hack to minimize disk space
Browse files Browse the repository at this point in the history
  • Loading branch information
popematt committed Sep 30, 2024
1 parent acda4a4 commit 4943435
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ jobs:
needs: build
strategy:
fail-fast: false
# max-parallel: 1
matrix:
product: ${{ fromJSON(needs.build.outputs.products) }}
steps:
Expand All @@ -63,8 +62,6 @@ jobs:

# Don't set up gradle here. We've already verified the gradle wrapper in the previous job.

- run: du -h -t 500M /

# Run intellij:verifyPlugin task.
- name: Verify Plugin
run: ./gradlew verifyPlugin -PverifyPlugin="${{ matrix.product }}"
Expand Down
8 changes: 7 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ version = packageVersion
logger.lifecycle("Building Amazon Ion $pluginVersion")
verifyProduct?.also { logger.lifecycle("verifyProduct=$it") }

if (System.getenv().containsKey("PUBLISH_TOKEN") && verifyProduct != null) {
throw IllegalArgumentException("Cannot use 'verifyProduct' property for a publish task.")
}

dependencies {
intellijPlatform {
// This should be equivalent to the lowest version that we build against.
Expand Down Expand Up @@ -90,7 +94,9 @@ intellijPlatform {

ideaVersion {
sinceBuild.set(supportedSinceIdeVersion)
untilBuild.set(supportedUntilIdeVersion)
untilBuild.set(verifyProduct?.let {
it.slice(listOf(5, 6, 8)) + ".*"
} ?: supportedUntilIdeVersion)
}
}

Expand Down

0 comments on commit 4943435

Please sign in to comment.