Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix publishing ci code #259

Merged
merged 5 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading