-
Notifications
You must be signed in to change notification settings - Fork 22
45 lines (45 loc) · 1.24 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: CI
on:
push:
branches:
- master
- main
pull_request:
jobs:
native-image:
name: Compile
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-latest, ubuntu-latest, windows-latest]
java: [8]
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
with:
java-version: "adopt@1.${{ matrix.java }}"
- name: Setup Windows C++ toolchain
uses: ilammy/msvc-dev-cmd@v1
if: ${{ matrix.os == 'windows-latest' }}
- name: sbt test plugin/scripted
if: ${{ matrix.os == 'ubuntu-latest' }}
shell: bash
run: |
export JABBA=/home/runner/bin/jabba
$JABBA install [email protected]
export GRAALVM_HOME=$($JABBA which --home [email protected])
$GRAALVM_HOME/bin/gu install native-image
export NATIVE_IMAGE_COMMAND=$GRAALVM_HOME/bin/native-image
sbt test plugin/scripted
- name: sbt test
shell: bash
if: ${{ matrix.os == 'windows-latest' }}
run: |
sbt example/nativeImage
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- run: sbt checkAll