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 55 branches : [ master ]
66 paths-ignore :
77 - ' **/README.md'
8+ - ' screenshots/**'
9+ - ' .gitignore'
10+ - ' .idea/**'
811 - ' .run/**'
12+
913 pull_request :
1014 branches : [ master ]
1115 paths-ignore :
1216 - ' **/README.md'
17+ - ' screenshots/**'
18+ - ' .gitignore'
19+ - ' .idea/**'
1320 - ' .run/**'
21+
1422jobs :
1523 build :
1624 name : 🎉 Build
@@ -20,37 +28,21 @@ jobs:
2028 - name : 🚚 Get latest code
2129 uses : actions/checkout@v3
2230
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
4133 uses : actions/setup-java@v3
4234 with :
43- distribution : jdkfile
35+ distribution : corretto
4436 java-version : ' 17'
4537 architecture : x64
46- jdkFile : ./amazon-corretto-17-x64-linux-jdk.tar.gz
4738
4839 - name : 🔢 Grant execute permission for gradlew
4940 run : chmod +x gradlew
5041
5142 - name : 🔨 Build with Gradle
5243 run : ./gradlew :library:assembleRelease
5344
45+ # https://github.com/actions/upload-artifact
5446 - name : 📦 Retain Artifacts (Release AAR)
5547 id : retain-release-aab
5648 uses : actions/upload-artifact@v3
You can’t perform that action at this time.
0 commit comments