Skip to content

Commit 256a960

Browse files
CopilotMte90
andcommitted
Fix gradlew path - run from ide-plugins directory
Co-authored-by: Mte90 <[email protected]>
1 parent 4ef5679 commit 256a960

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/kotlin-ci.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,24 @@ jobs:
3434
path: |
3535
~/.gradle/caches
3636
~/.gradle/wrapper
37-
.gradle
38-
key: gradle-${{ matrix.java-version }}-${{ hashFiles('**/*.gradle*','**/gradle-wrapper.properties') }}
37+
ide-plugins/.gradle
38+
key: gradle-${{ matrix.java-version }}-${{ hashFiles('ide-plugins/**/*.gradle*','ide-plugins/**/gradle-wrapper.properties') }}
3939
restore-keys: |
4040
gradle-${{ matrix.java-version }}-
4141
4242
- name: Make wrapper executable
4343
run: chmod +x ./gradlew
44+
working-directory: ide-plugins
4445

4546
- name: Print Gradle info (for debugging)
4647
run: ./gradlew --no-daemon --version
48+
working-directory: ide-plugins
4749

4850
- name: Run diagnostics script (prints wrapper and kotlin plugin references)
4951
run: |
50-
mkdir -p out
51-
ide-plugins/inspect_gradle_kotlin_versions.sh > out/ci-diagnostics.txt || true
52+
mkdir -p ../out
53+
./inspect_gradle_kotlin_versions.sh > ../out/ci-diagnostics.txt || true
54+
working-directory: ide-plugins
5255
- name: Upload diagnostics
5356
uses: actions/upload-artifact@v4
5457
with:
@@ -60,7 +63,8 @@ jobs:
6063
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx3g"
6164
run: |
6265
set -o pipefail
63-
./gradlew build --no-daemon --stacktrace 2>&1 | tee gradle-build.log || true
66+
./gradlew build --no-daemon --stacktrace 2>&1 | tee ../gradle-build.log || true
67+
working-directory: ide-plugins
6468
- name: Upload build log
6569
uses: actions/upload-artifact@v4
6670
with:
@@ -72,16 +76,17 @@ jobs:
7276
set -o pipefail
7377
if ./gradlew :kotlin:tasks --dry-run &>/dev/null; then
7478
echo "Detected :kotlin subproject -> building it"
75-
./gradlew :kotlin:build --no-daemon --stacktrace 2>&1 | tee kotlin-subproject-build.log || true
79+
./gradlew :kotlin:build --no-daemon --stacktrace 2>&1 | tee ../kotlin-subproject-build.log || true
7680
echo "Uploading kotlin-subproject-build.log"
77-
ls -la kotlin-subproject-build.log || true
81+
ls -la ../kotlin-subproject-build.log || true
7882
elif ./gradlew :plugin:kotlin:tasks --dry-run &>/dev/null; then
7983
echo "Detected :plugin:kotlin subproject -> building it"
80-
./gradlew :plugin:kotlin:build --no-daemon --stacktrace 2>&1 | tee kotlin-subproject-build.log || true
84+
./gradlew :plugin:kotlin:build --no-daemon --stacktrace 2>&1 | tee ../kotlin-subproject-build.log || true
8185
else
8286
echo "No explicit kotlin plugin subproject found; running assemble on all projects"
83-
./gradlew assemble --no-daemon --stacktrace 2>&1 | tee assemble.log || true
87+
./gradlew assemble --no-daemon --stacktrace 2>&1 | tee ../assemble.log || true
8488
fi
89+
working-directory: ide-plugins
8590
- name: Upload kotlin-subproject/build logs if present
8691
uses: actions/upload-artifact@v4
8792
with:

0 commit comments

Comments
 (0)