|
31 | 31 | using: 'composite' |
32 | 32 | steps: |
33 | 33 |
|
34 | | - # Around March 2025 we've started seeing jobs fail with what looks like |
35 | | - # a race initialize version catalog (failure to resolve 'libs.', etc.). |
36 | | - # Forcing an initial run of `tasks` fixes that. |
37 | | - - name: Initial Gradle command |
38 | | - shell: bash |
39 | | - run: ./gradlew tasks |
40 | | - |
41 | 34 | - name: Set up JDK |
42 | 35 | uses: actions/setup-java@v5 |
43 | 36 | with: |
@@ -105,16 +98,14 @@ runs: |
105 | 98 |
|
106 | 99 | - uses: gradle/actions/wrapper-validation@v5 |
107 | 100 |
|
108 | | - # Run the actual task. Note that this still uses setup-gradle for more fine-grained caching. |
| 101 | + # Run the actual task. |
109 | 102 | - name: Run ${{inputs.task}} |
110 | | - uses: gradle/actions/setup-gradle@v5 |
111 | | - with: |
112 | | - working-directory: ${{inputs.build-root-directory}} |
113 | | - # These arguments need to be on a single line. If they're defined with wrapping (using `|`), |
114 | | - # something along the way to the actual CLI invocation gets confused and the jvmargs list |
115 | | - # winds up getting parsed as a single argument. |
116 | | - run: ./gradlew ${{steps.gradle-args.outputs.gradle-property-args}} ${{inputs.task}} '-Dorg.gradle.jvmargs=${{steps.gradle-args.outputs.gradle-jvm-args}}' |
117 | | - cache-read-only: false |
| 103 | + shell: bash |
| 104 | + working-directory: ${{inputs.build-root-directory}} |
| 105 | + # These arguments need to be on a single line. If they're defined with wrapping (using `|`), |
| 106 | + # something along the way to the actual CLI invocation gets confused and the jvmargs list |
| 107 | + # winds up getting parsed as a single argument. |
| 108 | + run: ./gradlew ${{steps.gradle-args.outputs.gradle-property-args}} ${{inputs.task}} '-Dorg.gradle.jvmargs=${{steps.gradle-args.outputs.gradle-jvm-args}}' |
118 | 109 |
|
119 | 110 | # Save the build cache to `write-cache-key`. |
120 | 111 | # Skip if we already had an exact match, or if the key is not set, or if this is a Windows runner. |
|
0 commit comments