Skip to content

Commit

Permalink
increase gradle workers on github actions (wip, hack to force recompile)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Nov 26, 2024
1 parent 2542ca8 commit 1105d5d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/actions/run-gradle/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,17 @@ runs:
fi
echo "JDK_CI=$JAVA_HOME" >> $GITHUB_ENV
echo "JDK_EA=${{ inputs.early-access == inputs.java }}" >> $GITHUB_ENV
echo "JAVA_TOOL_OPTIONS=-Dorg.gradle.workers.max=$((2 * $(nproc)))" >> $GITHUB_ENV
echo "ORG_GRADLE_PROJECT_org.gradle.java.installations.auto-download=false" >> $GITHUB_ENV
- name: Setup Gradle
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1
env:
ORG_GRADLE_PROJECT_org.gradle.java.installations.auto-download: 'false'
with:
add-job-summary: never
cache-read-only: false
gradle-home-cache-strict-match: true
cache-encryption-key: ${{ inputs.cache-encryption-key }}
- name: Run ${{ inputs.arguments }}
if: ${{ inputs.arguments != '' }}
env:
ORG_GRADLE_PROJECT_org.gradle.java.installations.auto-download: 'false'
shell: bash
run: |
echo "::add-matcher::.github/problem-matcher.json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
* @author ben.manes@gmail.com (Ben Manes)
*/
public final class Specifications {
final String test = "hack";

public static final String PACKAGE_NAME = Specifications.class.getPackage().getName();
public static final String RETIRED_STRONG_KEY = "RETIRED_STRONG_KEY";
public static final String RETIRED_WEAK_KEY = "RETIRED_WEAK_KEY";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
*/
@NullMarked
public interface Cache<K, V> {
final String test = "hack";

Check warning on line 42 in caffeine/src/main/java/com/github/benmanes/caffeine/cache/Cache.java

View workflow job for this annotation

GitHub Actions / Qodana Community for JVM

Unnecessary modifier

Modifier `final` is redundant for interface fields

/**
* Returns the value associated with the {@code key} in this cache, or {@code null} if there is no
Expand Down

0 comments on commit 1105d5d

Please sign in to comment.