Add S3 cache
MODIFY
.github/workflows/nightly.yaml
.github/workflows/nightly.yaml
@@ -34,6 +34,9 @@ jobs:
- name: Test with Gradle
uses: nick-invision/retry@v1
+ env:
+ S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
+ S3_BUILD_CACHE_SECRET_KEY: ${{ secrets.S3_BUILD_CACHE_SECRET_KEY }}
with:
command: ./gradlew testJava${{ matrix.java }} --stacktrace
timeout_minutes: 60
@@ -55,6 +58,9 @@ jobs:
- name: Test with Gradle
uses: nick-invision/retry@v1
+ env:
+ S3_BUILD_CACHE_ACCESS_KEY_ID: ${{ secrets.S3_BUILD_CACHE_ACCESS_KEY_ID }}
+ S3_BUILD_CACHE_SECRET_KEY: ${{ secrets.S3_BUILD_CACHE_SECRET_KEY }}
with:
command: ./gradlew latestDepTest --stacktrace
timeout_minutes: 60

MODIFY
settings.gradle
settings.gradle
plugins {
id 'com.gradle.enterprise' version '3.0'
+ id 'com.github.burrunan.s3-build-cache' version '1.1'
}
def isCI = System.getenv("CI") != null
@@ -16,6 +17,16 @@ gradleEnterprise {
}
}
+apply plugin: 'com.github.burrunan.s3-build-cache'
+
+buildCache {
+ remote(com.github.burrunan.s3cache.AwsS3BuildCache) {
+ region = 'us-west-2'
+ bucket = 'otel-gradle-cache-temp'
+ push = isCI
+ }
+}
+
rootProject.name = 'opentelemetry-java-instrumentation'
// agent projects

Add S3 cache (#982)