Skip to content

Commit

Permalink
fix: cache sdkman to avoid all the temp unavailable errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dotkas committed Nov 18, 2023
1 parent 9385079 commit 6f4d956
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,25 @@ commands:
install_sdkman:
description: Install SDKMAN
steps:
- restore_cache:
name: Restore SDKMan executable
keys:
- sdkman-cli-{{ arch }}-v1
- run:
name: Installing SDKMAN
command: |
curl -s "https://get.sdkman.io?rcupdate=false" | bash
if ! command -v sdk &> /dev/null
then
curl -s "https://get.sdkman.io?rcupdate=false" | bash
fi
echo -e '\nsource "/home/circleci/.sdkman/bin/sdkman-init.sh"' >> $BASH_ENV
source $BASH_ENV
sdk list java
- save_cache:
key: sdkman-cli-{{ arch }}-v1
paths:
- ~/.sdkman
install_gradle_unix:
description: Install gradle
parameters:
Expand Down

0 comments on commit 6f4d956

Please sign in to comment.