Skip to content

Commit 9cf958b

Browse files
committed
runner updated.
1 parent 94343ca commit 9cf958b

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/android-ci.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ on:
1111
paths-ignore:
1212
- '**/README.md'
1313
- '.run/**'
14-
15-
env:
16-
JDK_URL: https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz
17-
JDK_FILE: ./amazon-corretto-17-x64-linux-jdk.tar.gz
18-
1914
jobs:
2015
build:
2116
name: 🎉 Build
@@ -27,13 +22,13 @@ jobs:
2722

2823
- name: Get latest Corretto URL
2924
id: get-latest-corretto-url
30-
run: echo "{URL}={$(curl -LIs -o /dev/null -w %{url_effective} $JDK_URL)}" >> $GITHUB_OUTPUT
25+
run: echo "{URL}={$(curl -LIs -o /dev/null -w %{url_effective} https://corretto.aws/downloads/latest/amazon-corretto-17-x64-linux-jdk.tar.gz)" >> $GITHUB_OUTPUT
3126

3227
- uses: actions/cache@v3
3328
id: corretto-cache
3429
name: Restore Corretto
3530
with:
36-
path: $JDK_FILE
31+
path: ./amazon-corretto-17-x64-linux-jdk.tar.gz
3732
key: ${{ runner.os }}-corretto-${{ steps.get-latest-corretto-url.outputs.___URL }}
3833

3934
- name: Download AWS Corretto
@@ -46,7 +41,7 @@ jobs:
4641
distribution: jdkfile
4742
java-version: '17'
4843
architecture: x64
49-
jdkFile: $JDK_FILE
44+
jdkFile: ./amazon-corretto-17-x64-linux-jdk.tar.gz
5045

5146
- name: 🔢 Grant execute permission for gradlew
5247
run: chmod +x gradlew

0 commit comments

Comments
 (0)