Skip to content

Commit 82a61f3

Browse files
committed
trying the default.
1 parent a4362a0 commit 82a61f3

File tree

1 file changed

+3
-27
lines changed

1 file changed

+3
-27
lines changed

.github/workflows/android-ci.yml

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

3-
env:
4-
JDK_FILE: /home/runner/work/amazon-corretto-17-x64-linux-jdk.tar.gz
5-
63
on:
74
push:
85
branches: [ master ]
@@ -27,34 +24,13 @@ jobs:
2724
- name: 🚚 Get latest code
2825
uses: actions/checkout@v3
2926

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
5128
- name: ☕ Set up JDK 17
5229
uses: actions/setup-java@v3
5330
with:
54-
distribution: jdkfile
31+
distribution: corretto
5532
java-version: '17'
5633
architecture: x64
57-
jdkFile: echo $JDK_FILE
5834

5935
- name: Build with Gradle
6036
run: ./gradlew :mobile:bundleDebug
@@ -73,4 +49,4 @@ jobs:
7349
with:
7450
name: androidx-github
7551
path: ./mobile/build/reports/*
76-
retention-days: 14
52+
retention-days: 14

0 commit comments

Comments
 (0)