Skip to content

Commit 8a9f91a

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

File tree

4 files changed

+37
-25
lines changed

4 files changed

+37
-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: 9 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("253.29346.138")
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,9 @@ 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+
// 253.29346.138 means: 2025.3.1
40+
ide(org.jetbrains.intellij.platform.gradle.IntelliJPlatformType.IntellijIdeaCommunity, "253.29346.138")
4341
}
4442
}
4543
}
@@ -52,7 +50,7 @@ tasks {
5250
}
5351
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
5452
compilerOptions {
55-
jvmTarget.set(JvmTarget.fromTarget(properties("javaVersion").get()))
53+
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.fromTarget(properties("javaVersion").get()))
5654
// Deactivate K2 to avoid SpillingKt problems during the verification phase
5755
freeCompilerArgs.add("-Xuse-k2=false")
5856
}

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)