Skip to content

Commit

Permalink
enable build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhee17 committed Aug 23, 2023
1 parent 12df7bd commit bbb13e4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/actions_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ env:
GH_TOKEN: ${{ github.token }}
RUN_ID: ${{ github.run_id }}
PR_NUMBER: ${{ github.event.pull_request.number }}
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError
systemProp.https.protocols=TLSv1,TLSv1.1,TLSv1.2

jacocoExclusions=com/linecorp/armeria/internal/common/CurrentJavaVersionSpecific,com/linecorp/armeria/*/scalapb/**,META-INF/versions/**
# enable caching by default
org.gradle.caching=true
11 changes: 11 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ gradleEnterprise {
}
}

buildCache {
remote(HttpBuildCache) {
url = 'https://ge.armeria.dev/cache/armeria/'
credentials { creds ->
creds.username = System.getenv('GRADLE_ENTERPRISE_CACHE_USERNAME')
creds.password = System.getenv('GRADLE_ENTERPRISE_CACHE_PASSWORD')
}
push = System.getenv('CI') != null
}
}

rootProject.name = 'armeria'

apply from: "${rootDir}/gradle/scripts/settings-flags.gradle"
Expand Down

0 comments on commit bbb13e4

Please sign in to comment.