Skip to content

Commit

Permalink
fix publishing ci code (#259)
Browse files Browse the repository at this point in the history
* fix publishing ci code

* try freeing up space in runners

* free disk space

* remove old biggest space cloggers

* free in publishing code too
  • Loading branch information
mkurnikov authored Dec 3, 2024
1 parent b9759d5 commit c8bc93d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 40 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -41,3 +55,4 @@ jobs:

- name: Verify plugin
run: ./gradlew verifyPlugin

50 changes: 19 additions & 31 deletions .github/workflows/publish-stable-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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



9 changes: 0 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit c8bc93d

Please sign in to comment.