Skip to content

Commit

Permalink
updated cache path for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ennioVisco committed Jul 5, 2023
1 parent 146e96e commit ef97bf3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ jobs:
name: Java Build
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
os: [
# macos-latest,
# windows-latest,
ubuntu-latest
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -25,7 +29,7 @@ jobs:
- name: Save build cache
uses: actions/cache/save@v3
with:
path: ~/**/build
path: ~/build
key: ${{ github.sha }}-${{ github.workflow_id }}-${{ runner.os }}

# Tests running and static code analysis
Expand All @@ -48,14 +52,14 @@ jobs:
- name: Restore build cache
uses: actions/cache/restore@v3
with:
path: ~/**/build
path: ~/build
key: ${{ github.sha }}-${{ github.workflow_id }}-${{ runner.os }}
- name: Gradle check
run: ./gradlew check
- name: Save tests cache
uses: actions/cache/save@v3
with:
path: ~/**/build
path: ~/build
key: ${{ github.sha }}-${{ github.workflow_id }}-${{ runner.os }}

analyze:
Expand All @@ -74,7 +78,7 @@ jobs:
- name: Restore tests cache
uses: actions/cache/restore@v3
with:
path: ~/**/build
path: ~/build
key: ${{ github.sha }}-${{ github.workflow_id }}-${{ runner.os }}
- name: Codecov update
uses: codecov/codecov-action@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
distribution: adopt
cache: gradle
- name: Build documentation
run: ./gradlew docs
run: ./gradlew docs # --no-configuration-cache
- name: Save built docs
uses: actions/cache/save@v3
with:
Expand Down

0 comments on commit ef97bf3

Please sign in to comment.