Skip to content

Commit 953b19d

Browse files
committed
Add AOT compilation test in CI
1 parent ac6058e commit 953b19d

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

.github/workflows/aot-test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Ahead-of-time compilation test
2+
on:
3+
pull_request:
4+
branches: [ "main" ]
5+
6+
jobs:
7+
build:
8+
name: AOT test on ${{ matrix.os }}
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
matrix:
12+
os: [macos-14, windows-2022, ubuntu-24.04]
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: graalvm/setup-graalvm@v1
17+
with:
18+
java-version: '23'
19+
distribution: 'graalvm'
20+
github-token: ${{ secrets.GITHUB_TOKEN }}
21+
native-image-job-reports: 'true'
22+
23+
- name: Setup SBT
24+
uses: sbt/setup-sbt@v1
25+
26+
- name: Build native image
27+
run: |
28+
sbt GraalVMNativeImage/packageBin

build.sbt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ lazy val jenaV = "5.3.0"
99
lazy val jellyV = "2.8.0+14-4181e89a-SNAPSHOT"
1010

1111
lazy val root = (project in file("."))
12-
.enablePlugins(BuildInfoPlugin)
12+
.enablePlugins(
13+
BuildInfoPlugin,
14+
GraalVMNativeImagePlugin,
15+
)
1316
.settings(
1417
name := "cli",
1518
libraryDependencies ++= Seq(

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.13.1")
22
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.9.3")
3-
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.3.1")
3+
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.11.1")

0 commit comments

Comments
 (0)