Skip to content

Commit

Permalink
Use install-java.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
olafurpg committed Sep 21, 2019
1 parent 323fa8d commit 5243ee8
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,9 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Install
run: |
export ADOPTOPENJDK=8
curl -sL https://get.sdkman.io | bash
echo sdkman_auto_answer=true > $HOME/.sdkman/etc/config
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java $(sdk list java | grep -o "$ADOPTOPENJDK\.[0-9\.]*hs-adpt" | head -1)
unset JAVA_HOME
java -Xmx32m -version
git fetch --tags
run: curl -sL https://raw.githubusercontent.com/olafurpg/sbt-ci-release/master/bin/install-java.sh | bash
- name: Compile
run: ./bin/sbt compile
run: |
java -version
echo $JAVA_HOME
./bin/sbt compile

0 comments on commit 5243ee8

Please sign in to comment.