Skip to content

Commit 9c4ea6d

Browse files
committed
runner updated.
1 parent 8c532cb commit 9c4ea6d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/android-ci.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Android CI
22

3+
env:
4+
JDK_FILE: ~/Downloads/amazon-corretto-17-x64-linux-jdk.tar.gz
5+
36
on:
47
push:
58
branches: [ master ]
@@ -24,6 +27,10 @@ jobs:
2427
- name: 🚚 Get latest code
2528
uses: actions/checkout@v3
2629

30+
- name: List Home Dir
31+
id: list-home-dir
32+
run: cd ~ && ls -la
33+
2734
- name: Get latest Corretto URL
2835
id: get-latest-corretto-url
2936
run: |
@@ -34,20 +41,20 @@ jobs:
3441
id: corretto-cache
3542
name: Restore Corretto
3643
with:
37-
path: ./amazon-corretto-17-x64-linux-jdk.tar.gz
44+
path: ${{ JDK_FILE }}
3845
key: ${{ runner.os }}-corretto-${{ steps.get-latest-corretto-url.outputs.___URL }}
3946

4047
- name: Download AWS Corretto
4148
if: steps.corretto-cache.outputs.cache-hit != 'true'
42-
run: wget -O amazon-corretto-17-x64-linux-jdk.tar.gz ${{ steps.get-latest-corretto-url.outputs.___URL }}
49+
run: wget -O ${{ JDK_FILE }} ${{ steps.get-latest-corretto-url.outputs.___URL }}
4350

4451
- name: ☕ Set up JDK 17
4552
uses: actions/setup-java@v3
4653
with:
4754
distribution: jdkfile
4855
java-version: '17'
4956
architecture: x64
50-
jdkFile: ./amazon-corretto-17-x64-linux-jdk.tar.gz
57+
jdkFile: ${{ JDK_FILE }}
5158

5259
- name: Build with Gradle
5360
run: ./gradlew :mobile:bundleDebug

0 commit comments

Comments
 (0)