File tree 3 files changed +29
-23
lines changed
3 files changed +29
-23
lines changed Original file line number Diff line number Diff line change 6
6
- main
7
7
pull_request :
8
8
jobs :
9
- unix :
9
+ native-image :
10
10
name : Compile
11
11
runs-on : ${{ matrix.os }}
12
12
strategy :
@@ -15,10 +15,13 @@ jobs:
15
15
os : [macOS-latest, ubuntu-latest, windows-latest]
16
16
java : [8]
17
17
steps :
18
- - uses : actions/checkout@v2
18
+ - uses : actions/checkout@v3
19
19
- uses : olafurpg/setup-scala@v13
20
20
with :
21
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
25
- name : sbt test plugin/scripted
23
26
if : ${{ matrix.os == 'ubuntu-latest' }}
24
27
shell : bash
@@ -30,15 +33,13 @@ jobs:
30
33
export NATIVE_IMAGE_COMMAND=$GRAALVM_HOME/bin/native-image
31
34
sbt test plugin/scripted
32
35
- name : sbt test
33
- shell : cmd
36
+ shell : bash
34
37
if : ${{ matrix.os == 'windows-latest' }}
35
- run : >-
36
- "C:\Program Files (x86)\Microsoft Visual
37
- Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && sbt
38
- example/nativeImage
38
+ run : |
39
+ sbt example/nativeImage
39
40
check :
40
41
runs-on : ubuntu-latest
41
42
steps :
42
- - uses : actions/checkout@v2
43
+ - uses : actions/checkout@v3
43
44
- uses : olafurpg/setup-scala@v13
44
45
- run : sbt checkAll
Original file line number Diff line number Diff line change 8
8
release :
9
9
types : [published]
10
10
jobs :
11
- unix :
11
+ native-image :
12
12
runs-on : ${{ matrix.os }}
13
13
strategy :
14
14
fail-fast : false
@@ -25,22 +25,27 @@ jobs:
25
25
- os : windows-latest
26
26
uploaded_filename : example-x86_64-pc-win32.exe
27
27
local_path : example\target\native-image\example.exe
28
+ env :
29
+ # define Java options for both official sbt and sbt-extras
30
+ JAVA_OPTS : -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
31
+ JVM_OPTS : -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
28
32
steps :
29
- - uses : actions/checkout@v2
30
- - uses : olafurpg/setup-scala@v13
33
+ - uses : actions/checkout@v3
34
+ - name : Setup JDK
35
+ uses : actions/setup-java@v3
36
+ with :
37
+ distribution : temurin
38
+ java-version : 8
39
+ cache : sbt
31
40
- run : git fetch --tags || true
32
- - run : sbt example/nativeImage
33
- shell : bash
34
- if : ${{ matrix.os != 'windows-latest' }}
35
- - run : echo $(pwd)
36
- shell : bash
37
- - name : sbt test
38
- shell : cmd
41
+ - name : Setup Windows C++ toolchain
42
+ uses : ilammy/msvc-dev-cmd@v1
39
43
if : ${{ matrix.os == 'windows-latest' }}
40
- run : >-
41
- "C:\Program Files (x86)\Microsoft Visual
42
- Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && sbt
43
- example/nativeImage
44
+ - name : Build
45
+ shell : bash
46
+ run : |
47
+ echo $(pwd)
48
+ sbt clean example/nativeImage
44
49
- uses : actions/upload-artifact@v2
45
50
with :
46
51
path : ${{ matrix.local_path }}
Original file line number Diff line number Diff line change 6
6
publish :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
- - uses : actions/checkout@v2
9
+ - uses : actions/checkout@v3
10
10
- uses : olafurpg/setup-scala@v13
11
11
- uses : olafurpg/setup-gpg@v3
12
12
- run : git fetch --tags || true
You can’t perform that action at this time.
0 commit comments