Skip to content

Commit

Permalink
GitHub Workflows: Use setup-java,setup-graalvm built-in cache
Browse files Browse the repository at this point in the history
In 3 workflows use built-in cache support in setup-java and setup-graalvm
actions and remove the separate cache action step.
  • Loading branch information
msgilligan committed Jan 27, 2025
1 parent 1c66ede commit 5add57f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/graalvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ jobs:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.distribution }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
cache: 'gradle'
- name: Build with Gradle
run: ./gradlew nativeCompile --scan --info --stacktrace
- name: Upload jsonrpc tool as artifact
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,12 @@ jobs:
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Set up JDK
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
cache: 'gradle'
- name: Build with Gradle
run: ./gradlew buildCI installDist --scan --info --stacktrace
- name: Generate SHA256SUMS (Linux)
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/regtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,12 @@ jobs:
- uses: actions/checkout@v4
- name: Download Omni Core (Bitcoin Core superset)
run: ./test-download-omnicore-ubuntu.sh
- name: Set up JDK
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
cache: 'gradle'
- name: Run RegTests
run: ./test-run-regtest.sh
- name: Upload RegTest results as artifact
Expand Down

0 comments on commit 5add57f

Please sign in to comment.