Skip to content

Commit

Permalink
ci: introduce actions cache
Browse files Browse the repository at this point in the history
  • Loading branch information
kyujin-cho committed Feb 18, 2024
1 parent 5444efb commit 1b50a9c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-aab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ jobs:
filename: ${{ steps.build_aab.outputs.upload_filename }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
/usr/local/lib/android
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties' )}}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up OpenJDK 17
uses: actions/setup-java@v3
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/build-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ jobs:
filename: ${{ steps.build_apk.outputs.upload_filename }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
/usr/local/lib/android
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties' )}}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up OpenJDK 17
uses: actions/setup-java@v3
with:
Expand Down Expand Up @@ -65,6 +74,7 @@ jobs:
KEY_ALIAS: ${{ secrets.key-alias }}
KEY_PASSWORD: ${{ secrets.key-password }}
BUILD_TYPE: ${{ inputs.build-type }}
if: ${{ secrets.key-password != '' }}
- name: Upload APK
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 1b50a9c

Please sign in to comment.