Skip to content

Commit 3db77c6

Browse files
authored
Add GHA cache (#1604)
1 parent 6e5bc2d commit 3db77c6

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/pr.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,24 @@ jobs:
3030
fail-fast: false
3131
steps:
3232
- uses: actions/checkout@v2
33-
- id: setup-test-java
34-
name: Set up JDK 11 for running Gradle
33+
- name: Set up Java 11
3534
uses: actions/setup-java@v1
3635
with:
3736
java-version: 11
38-
- name: Build otel-fork
37+
- name: Init and update otel submodule
3938
run: |
4039
git submodule init
4140
git submodule update
41+
- name: Restore cache
42+
uses: burrunan/gradle-cache-action@v1
43+
- name: Build otel-fork
44+
run: |
4245
cd otel
4346
# TODO why does this error only happen in GHA, without "-x signMavenPublication"?
4447
# "Cannot perform signing task ':instrumentation-api:signMavenPublication' because it has no configured signatory"
4548
./gradlew publishToMavenLocal -x signMavenPublication
4649
- name: Test
50+
# TODO enable build cache, either --build-cache here, or org.gradle.caching=true in gradle.properties
4751
run: ./gradlew ${{ matrix.module }}:smokeTest --no-daemon
4852

4953
accept-pr:

otel

0 commit comments

Comments
 (0)