File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Android CI
2
2
3
+ env :
4
+ JDK_FILE : ~/Downloads/amazon-corretto-17-x64-linux-jdk.tar.gz
5
+
3
6
on :
4
7
push :
5
8
branches : [ master ]
24
27
- name : 🚚 Get latest code
25
28
uses : actions/checkout@v3
26
29
30
+ - name : List Home Dir
31
+ id : list-home-dir
32
+ run : cd ~ && ls -la
33
+
27
34
- name : Get latest Corretto URL
28
35
id : get-latest-corretto-url
29
36
run : |
@@ -34,20 +41,20 @@ jobs:
34
41
id : corretto-cache
35
42
name : Restore Corretto
36
43
with :
37
- path : ./amazon-corretto-17-x64-linux-jdk.tar.gz
44
+ path : ${{ JDK_FILE }}
38
45
key : ${{ runner.os }}-corretto-${{ steps.get-latest-corretto-url.outputs.___URL }}
39
46
40
47
- name : Download AWS Corretto
41
48
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 }}
43
50
44
51
- name : ☕ Set up JDK 17
45
52
uses : actions/setup-java@v3
46
53
with :
47
54
distribution : jdkfile
48
55
java-version : ' 17'
49
56
architecture : x64
50
- jdkFile : ./amazon-corretto-17-x64-linux-jdk.tar.gz
57
+ jdkFile : ${{ JDK_FILE }}
51
58
52
59
- name : Build with Gradle
53
60
run : ./gradlew :mobile:bundleDebug
You can’t perform that action at this time.
0 commit comments