Skip to content

Commit 2c79cb2

Browse files
committed
fix(pipeline): Disable configuration cache for build and verification steps
1 parent dbccea2 commit 2c79cb2

File tree

4 files changed

+41
-18
lines changed

4 files changed

+41
-18
lines changed

.github/actions/build/action.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,30 @@ runs:
1010
java-version: ${{ inputs.java_version }}
1111
cache: 'gradle'
1212

13+
- name: Debug Environment
14+
shell: bash
15+
run: |
16+
echo "Checking gradle.properties existence:"
17+
ls -la gradle.properties
18+
echo "Checking content of gradle.properties (sanitized):"
19+
grep -v "Token" gradle.properties
20+
1321
- name: Setup Gradle
1422
uses: gradle/actions/setup-gradle@v4
23+
with:
24+
cache-disabled: true
1525

16-
- name: Build PlugIn
17-
shell: bash
18-
run: ./gradlew buildPlugin -PpluginVersion=${{ inputs.version }}
19-
20-
- name: Tests and Verify Plugin
26+
- name: Build, Tests and Verify Plugin
2127
shell: bash
22-
run: ./gradlew verifyPlugin check -PpluginVersion=${{ inputs.version }}
28+
run: |
29+
./gradlew buildPlugin verifyPlugin check \
30+
-PpluginVersion=${{ inputs.version }} \
31+
--no-configuration-cache \
32+
--no-build-cache \
33+
--no-daemon \
34+
--max-workers=1
35+
env:
36+
GRADLE_OPTS: "-Dorg.gradle.configuration-cache=false -Dorg.gradle.caching=false"
2337

2438
inputs:
2539
version:

.github/workflows/buildRelease.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ jobs:
1010
permissions:
1111
contents: write
1212
steps:
13+
- name: Maximize Build Space
14+
uses: easimon/maximize-build-space@v10
15+
with:
16+
root-reserve-mb: 2048
17+
swap-size-mb: 1024
18+
remove-dotnet: true
19+
remove-android: true
20+
remove-haskell: true
21+
build-mount-path: /home/runner/work
22+
1323
- name: Checkout project sources
1424
uses: actions/checkout@v4
1525
with:
@@ -59,6 +69,6 @@ jobs:
5969
- name: Create IntelliJ's Marketplace Release
6070
# Publish only valid semantic (real) versions
6171
if: steps.check_version.outputs.valid == 'true'
62-
run: ./gradlew publishPlugin -PpluginVersion=${{ steps.versions.outputs.TAGGED_VERSION }}
72+
run: ./gradlew publishPlugin -PpluginVersion=${{ steps.versions.outputs.TAGGED_VERSION }} --no-configuration-cache --no-build-cache
6373
env:
6474
PUBLISH_TOKEN: ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }}

build.gradle.kts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2-
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
3-
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
4-
51
fun properties(key: String) = providers.gradleProperty(key)
62

73
plugins {
@@ -15,6 +11,8 @@ version = properties("pluginVersion").get()
1511

1612
repositories {
1713
mavenCentral()
14+
maven("https://www.jetbrains.com/intellij-repository/releases")
15+
maven("https://cache-redirector.jetbrains.com/intellij-dependencies")
1816

1917
intellijPlatform {
2018
defaultRepositories()
@@ -23,11 +21,11 @@ repositories {
2321

2422
dependencies {
2523
intellijPlatform {
26-
val type = properties("platformType").get()
27-
val version = properties("platformVersion").get()
24+
val type = providers.gradleProperty("platformType").getOrElse("IU")
25+
val version = providers.gradleProperty("platformVersion").getOrElse("2025.3.1")
2826
create(type, version)
2927

30-
testFramework(TestFrameworkType.Platform)
28+
testFramework(org.jetbrains.intellij.platform.gradle.TestFrameworkType.Platform)
3129
bundledPlugin("JavaScript")
3230
}
3331

@@ -37,9 +35,8 @@ dependencies {
3735
intellijPlatform {
3836
pluginVerification {
3937
ides {
40-
ide(IntelliJPlatformType.IntellijIdeaCommunity, "2024.3.7")
41-
ide(IntelliJPlatformType.IntellijIdeaUltimate, "2024.3.7")
42-
ide(IntelliJPlatformType.IntellijIdeaUltimate, "2025.3.1")
38+
// ide(org.jetbrains.intellij.platform.gradle.IntelliJPlatformType.IntellijIdeaCommunity, "2024.3.7")
39+
ide(org.jetbrains.intellij.platform.gradle.IntelliJPlatformType.IntellijIdeaCommunity, "2025.3.1")
4340
}
4441
}
4542
}
@@ -52,7 +49,7 @@ tasks {
5249
}
5350
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
5451
compilerOptions {
55-
jvmTarget.set(JvmTarget.fromTarget(properties("javaVersion").get()))
52+
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.fromTarget(properties("javaVersion").get()))
5653
// Deactivate K2 to avoid SpillingKt problems during the verification phase
5754
freeCompilerArgs.add("-Xuse-k2=false")
5855
}

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ org.gradle.caching=true
77

88
pluginName=html-attribute-folder
99
pluginGroup=dev.zbinski
10+
# Do not modify the version here, it's for locale builds only
11+
# Git-Tags set the release version
1012
pluginVersion=0.0.0-dev
1113
platformVersion=2025.3
1214
# @see https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-types.html#IntelliJPlatformType

0 commit comments

Comments
 (0)