diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 9ce83d23..90eb8c2e 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -19,6 +19,20 @@ jobs: ORG_GRADLE_PROJECT_platformType: ${{ matrix.platform-type }} steps: + - name: Free disk space in the runner before build + uses: jlumbroso/free-disk-space@main + with: + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB + tool-cache: false + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow + android: true + haskell: true + large-packages: false + docker-images: false + swap-storage: false + - uses: actions/checkout@v4 - name: Set up JDK 21 @@ -41,3 +55,4 @@ jobs: - name: Verify plugin run: ./gradlew verifyPlugin + diff --git a/.github/workflows/publish-stable-on-release.yml b/.github/workflows/publish-stable-on-release.yml index ad186fb9..fc2521c0 100644 --- a/.github/workflows/publish-stable-on-release.yml +++ b/.github/workflows/publish-stable-on-release.yml @@ -34,43 +34,31 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up JDK 17 + - name: Free disk space in the runner before build + uses: jlumbroso/free-disk-space@main + with: + # this might remove tools that are actually needed, + # if set to "true" but frees about 6 GB + tool-cache: false + # all of these default to true, but feel free to set to + # "false" if necessary for your workflow + android: true + haskell: true + large-packages: false + docker-images: false + swap-storage: false + + - name: Set up JDK 21 uses: actions/setup-java@v4 with: distribution: 'corretto' java-version: 21 - - name: Setup Gradle and dependencies - uses: gradle/actions/setup-gradle@v3 - with: - gradle-version: wrapper - cache-read-only: false - arguments: ":resolveDependencies -Pkotlin.incremental=false --no-daemon" - gradle-home-cache-excludes: | - caches/modules-2/files-2.1/com.jetbrains.intellij.pycharm - caches/modules-2/files-2.1/com.jetbrains.intellij.idea - caches/modules-2/files-2.1/com.jetbrains.intellij.clion - - - name: Build - uses: gradle/actions/setup-gradle@v3 - with: - gradle-version: wrapper - arguments: "assemble testClasses -Pkotlin.incremental=false --no-daemon --stacktrace" - gradle-home-cache-excludes: | - caches/modules-2/files-2.1/com.jetbrains.intellij.pycharm - caches/modules-2/files-2.1/com.jetbrains.intellij.idea - caches/modules-2/files-2.1/com.jetbrains.intellij.clion - - - name: Publish to EAP channel - uses: gradle/actions/setup-gradle@v3 - with: - gradle-version: wrapper - arguments: ":publishPlugin -Pkotlin.incremental=false --no-daemon --stacktrace" - gradle-home-cache-excludes: | - caches/modules-2/files-2.1/com.jetbrains.intellij.pycharm - caches/modules-2/files-2.1/com.jetbrains.intellij.idea - caches/modules-2/files-2.1/com.jetbrains.intellij.clion + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + - name: Publish plugin + run: ./gradlew publishPlugin --stacktrace -Pkotlin.incremental=false diff --git a/build.gradle.kts b/build.gradle.kts index dbca0ddb..fa5524d2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -233,15 +233,6 @@ allprojects { copyDownloadedAptosBinaries(this) } } - - task("resolveDependencies") { - doLast { - rootProject.allprojects - .map { it.configurations } - .flatMap { it.filter { c -> c.isCanBeResolved } } - .forEach { it.resolve() } - } - } } //project(":ui-tests") {