22on :
33 push :
44 branches :
5- - master
65 - main
76 pull_request :
7+
88jobs :
99 native-image :
1010 name : Compile
@@ -13,33 +13,41 @@ jobs:
1313 fail-fast : false
1414 matrix :
1515 os : [macOS-latest, ubuntu-latest, windows-latest]
16- java : [11]
16+ java : ['17.0.7']
17+
1718 steps :
1819 - uses : actions/checkout@v3
19- - uses : olafurpg /setup-scala@v13
20+ - uses : graalvm /setup-graalvm@v1
2021 with :
21- java-version : " adopt@1. ${{ matrix.java }}"
22- - name : Setup Windows C++ toolchain
23- uses : ilammy/msvc-dev-cmd@v1
24- if : ${{ matrix.os == 'windows-latest' }}
22+ java-version : ${{ matrix.java }}
23+ cache : sbt
24+ components : native-image
25+
2526 - name : sbt test plugin/scripted
26- if : ${{ matrix.os == 'ubuntu-latest' }}
27- shell : bash
27+ if : ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
28+ env :
29+ NATIVE_IMAGE_COMMAND : native-image
2830 run : |
29- export JABBA=/home/runner/bin/jabba
30- $JABBA install graalvm@22.3.0
31- export GRAALVM_HOME=$($JABBA which --home graalvm@22.3.0)
32- $GRAALVM_HOME/bin/gu install native-image
33- export NATIVE_IMAGE_COMMAND=$GRAALVM_HOME/bin/ native-image
31+ # Copied from https://github.com/graalvm/setup-graalvm#quickstart-template
32+ echo "GRAALVM_HOME: $GRAALVM_HOME"
33+ echo "JAVA_HOME: $JAVA_HOME"
34+ java --version
35+ native-image --version
3436 sbt test plugin/scripted
35- - name : sbt test
36- shell : bash
37- if : ${{ matrix.os == 'windows-latest' }}
38- run : |
39- sbt example/nativeImage
37+
38+ # - name: sbt test
39+ # shell: bash
40+ # if: ${{ matrix.os == 'windows-latest' }}
41+ # run: |
42+ # sbt example/nativeImage
43+
4044 check :
4145 runs-on : ubuntu-latest
4246 steps :
4347 - uses : actions/checkout@v3
44- - uses : olafurpg/setup-scala@v13
48+ - uses : actions/setup-java@v3
49+ with :
50+ distribution : ' temurin'
51+ java-version : ' 17'
52+ cache : ' sbt'
4553 - run : sbt checkAll
0 commit comments