File tree Expand file tree Collapse file tree 1 file changed +3
-27
lines changed Expand file tree Collapse file tree 1 file changed +3
-27
lines changed Original file line number Diff line number Diff line change 1
1
name : Android CI
2
2
3
- env :
4
- JDK_FILE : /home/runner/work/amazon-corretto-17-x64-linux-jdk.tar.gz
5
-
6
3
on :
7
4
push :
8
5
branches : [ master ]
@@ -27,34 +24,13 @@ jobs:
27
24
- name : 🚚 Get latest code
28
25
uses : actions/checkout@v3
29
26
30
- - name : List Home Dir
31
- id : list-home-dir
32
- run : cd /home/runner/work && ls -la
33
-
34
- - name : Get latest Corretto URL
35
- id : get-latest-corretto-url
36
- run : |
37
- URL=$(curl -LIs -o /dev/null -w %{url_effective} https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz)
38
- echo "URL=${URL}" >> $GITHUB_OUTPUT
39
-
40
- - uses : actions/cache@v3
41
- id : corretto-cache
42
- name : Restore Corretto
43
- with :
44
- path : $JDK_FILE
45
- key : ${{ runner.os }}-corretto-${{ steps.get-latest-corretto-url.outputs.___URL }}
46
-
47
- - name : Download AWS Corretto
48
- if : steps.corretto-cache.outputs.cache-hit != 'true'
49
- run : wget -O $JDK_FILE ${{ steps.get-latest-corretto-url.outputs.___URL }}
50
-
27
+ # https://github.com/actions/setup-java
51
28
- name : ☕ Set up JDK 17
52
29
uses : actions/setup-java@v3
53
30
with :
54
- distribution : jdkfile
31
+ distribution : corretto
55
32
java-version : ' 17'
56
33
architecture : x64
57
- jdkFile : echo $JDK_FILE
58
34
59
35
- name : Build with Gradle
60
36
run : ./gradlew :mobile:bundleDebug
73
49
with :
74
50
name : androidx-github
75
51
path : ./mobile/build/reports/*
76
- retention-days : 14
52
+ retention-days : 14
You can’t perform that action at this time.
0 commit comments