Skip to content

Commit

Permalink
Update checkout and setup-java to v4 in pr workflow;
Browse files Browse the repository at this point in the history
Add caching gradle to speed up tag release workflow;
  • Loading branch information
AleksandarIlic committed Nov 27, 2024
1 parent ca5729f commit 16243f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/PR-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:

strategy:
matrix:
flavor: [ Aosp ]
flavor: [ Aosp, Google ]

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: 'gradle'

- name: Cache gradle
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Unpack secrets
run: |
Expand Down

0 comments on commit 16243f5

Please sign in to comment.