File tree Expand file tree Collapse file tree 1 file changed +12
-20
lines changed Expand file tree Collapse file tree 1 file changed +12
-20
lines changed Original file line number Diff line number Diff line change 5
5
branches : [ master ]
6
6
paths-ignore :
7
7
- ' **/README.md'
8
+ - ' screenshots/**'
9
+ - ' .gitignore'
10
+ - ' .idea/**'
8
11
- ' .run/**'
12
+
9
13
pull_request :
10
14
branches : [ master ]
11
15
paths-ignore :
12
16
- ' **/README.md'
17
+ - ' screenshots/**'
18
+ - ' .gitignore'
19
+ - ' .idea/**'
13
20
- ' .run/**'
21
+
14
22
jobs :
15
23
build :
16
24
name : 🎉 Build
@@ -20,37 +28,21 @@ jobs:
20
28
- name : 🚚 Get latest code
21
29
uses : actions/checkout@v3
22
30
23
- - name : Get latest Corretto URL
24
- id : get-latest-corretto-url
25
- run : |
26
- URL=$(curl -LIs -o /dev/null -w %{url_effective} https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz)
27
- echo "URL=${URL}" >> $GITHUB_OUTPUT
28
-
29
- - uses : actions/cache@v3
30
- id : corretto-cache
31
- name : Restore Corretto
32
- with :
33
- path : ./amazon-corretto-17-x64-linux-jdk.tar.gz
34
- key : ${{ runner.os }}-corretto-${{ steps.get-latest-corretto-url.outputs.___URL }}
35
-
36
- - name : Download AWS Corretto
37
- if : steps.corretto-cache.outputs.cache-hit != 'true'
38
- run : wget -O amazon-corretto-17-x64-linux-jdk.tar.gz ${{ steps.get-latest-corretto-url.outputs.___URL }}
39
-
40
- - name : ☕ Set up JDK 17
31
+ # https://github.com/actions/setup-java
32
+ - name : ☕ Set up AWS Corretto JDK 17
41
33
uses : actions/setup-java@v3
42
34
with :
43
- distribution : jdkfile
35
+ distribution : corretto
44
36
java-version : ' 17'
45
37
architecture : x64
46
- jdkFile : ./amazon-corretto-17-x64-linux-jdk.tar.gz
47
38
48
39
- name : 🔢 Grant execute permission for gradlew
49
40
run : chmod +x gradlew
50
41
51
42
- name : 🔨 Build with Gradle
52
43
run : ./gradlew :library:assembleRelease
53
44
45
+ # https://github.com/actions/upload-artifact
54
46
- name : 📦 Retain Artifacts (Release AAR)
55
47
id : retain-release-aab
56
48
uses : actions/upload-artifact@v3
You can’t perform that action at this time.
0 commit comments