Skip to content

Commit cf7c4ca

Browse files
committed
Sourcing SDKMAN for gu install also. Added Caching for SDKMAN install dir.
1 parent 62826d3 commit cf7c4ca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/native-image-compile.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ jobs:
88
steps:
99
- uses: actions/checkout@v2
1010

11+
- name: Cache SDKMAN installation
12+
uses: actions/cache@v2
13+
with:
14+
path: ~/.sdkman
15+
key: ${{ runner.os }}-sdkman-${{ hashFiles('**/pom.xml') }}
16+
restore-keys: |
17+
${{ runner.os }}-sdkman-
18+
1119
- name: Install GraalVM with SDKMAN
1220
run: |
1321
curl -s "https://get.sdkman.io" | bash
@@ -17,6 +25,7 @@ jobs:
1725
1826
- name: Install GraalVM Native Image
1927
run: |
28+
source "$HOME/.sdkman/bin/sdkman-init.sh"
2029
gu install native-image
2130
native-image --version
2231

0 commit comments

Comments
 (0)