Skip to content

Commit ebaf7dd

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

File tree

4 files changed

+38
-25
lines changed

4 files changed

+38
-25
lines changed

.github/actions/build/action.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,21 @@ runs:
1212

1313
- name: Setup Gradle
1414
uses: gradle/actions/setup-gradle@v4
15+
with:
16+
cache-disabled: true
1517

16-
- name: Build PlugIn
17-
shell: bash
18-
run: ./gradlew buildPlugin -PpluginVersion=${{ inputs.version }}
19-
20-
- name: Tests and Verify Plugin
18+
- name: Build, Tests and Verify Plugin
2119
shell: bash
22-
run: ./gradlew verifyPlugin check -PpluginVersion=${{ inputs.version }}
20+
run: |
21+
./gradlew buildPlugin verifyPlugin check \
22+
-PpluginVersion=${{ inputs.version }} \
23+
--no-configuration-cache \
24+
--no-build-cache \
25+
--no-daemon \
26+
--max-workers=1
27+
env:
28+
GRADLE_USER_HOME: /mnt/gradle-cache
29+
GRADLE_OPTS: "-Dorg.gradle.configuration-cache=false -Dorg.gradle.caching=false"
2330

2431
inputs:
2532
version:

.github/workflows/buildRelease.yml

Lines changed: 13 additions & 8 deletions
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: /mnt/gradle-cache
22+
1323
- name: Checkout project sources
1424
uses: actions/checkout@v4
1525
with:
@@ -34,13 +44,6 @@ jobs:
3444
uses: tj-actions/branch-names@v7
3545
id: branches
3646

37-
# For debugging purposes
38-
- name: Debug
39-
shell: bash
40-
run: |
41-
echo "Version: ${{ steps.versions.outputs.TAGGED_VERSION }}"
42-
echo "Branch : ${{ steps.branches.outputs.base_ref_branch || steps.branches.outputs.current_branch }}"
43-
4447
- name: Build and Test
4548
uses: ./.github/actions/build
4649
with:
@@ -59,6 +62,8 @@ jobs:
5962
- name: Create IntelliJ's Marketplace Release
6063
# Publish only valid semantic (real) versions
6164
if: steps.check_version.outputs.valid == 'true'
62-
run: ./gradlew publishPlugin -PpluginVersion=${{ steps.versions.outputs.TAGGED_VERSION }}
65+
run: ./gradlew publishPlugin -PpluginVersion=${{ steps.versions.outputs.TAGGED_VERSION }} --no-configuration-cache --no-build-cache
6366
env:
6467
PUBLISH_TOKEN: ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }}
68+
GRADLE_USER_HOME: /mnt/gradle-cache
69+
GRADLE_OPTS: "-Dorg.gradle.configuration-cache=false -Dorg.gradle.caching=false"

build.gradle.kts

Lines changed: 10 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,19 +11,23 @@ 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()
19+
marketplace()
20+
jetbrainsRuntime()
2121
}
2222
}
2323

2424
dependencies {
2525
intellijPlatform {
26-
val type = properties("platformType").get()
27-
val version = properties("platformVersion").get()
26+
val type = providers.gradleProperty("platformType").getOrElse("IU")
27+
val version = providers.gradleProperty("platformVersion").getOrElse("2025.3.1")
2828
create(type, version)
2929

30-
testFramework(TestFrameworkType.Platform)
30+
testFramework(org.jetbrains.intellij.platform.gradle.TestFrameworkType.Platform)
3131
bundledPlugin("JavaScript")
3232
}
3333

@@ -37,9 +37,8 @@ dependencies {
3737
intellijPlatform {
3838
pluginVerification {
3939
ides {
40-
ide(IntelliJPlatformType.IntellijIdeaCommunity, "2024.3.7")
41-
ide(IntelliJPlatformType.IntellijIdeaUltimate, "2024.3.7")
42-
ide(IntelliJPlatformType.IntellijIdeaUltimate, "2025.3.1")
40+
// ide(org.jetbrains.intellij.platform.gradle.IntelliJPlatformType.IntellijIdeaCommunity, "2024.3.7")
41+
ide(org.jetbrains.intellij.platform.gradle.IntelliJPlatformType.IntellijIdeaCommunity, "2025.3.1")
4342
}
4443
}
4544
}
@@ -52,7 +51,7 @@ tasks {
5251
}
5352
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
5453
compilerOptions {
55-
jvmTarget.set(JvmTarget.fromTarget(properties("javaVersion").get()))
54+
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.fromTarget(properties("javaVersion").get()))
5655
// Deactivate K2 to avoid SpillingKt problems during the verification phase
5756
freeCompilerArgs.add("-Xuse-k2=false")
5857
}

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)