-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (41 loc) · 1.39 KB
/
aot-test.yml
File metadata and controls
47 lines (41 loc) · 1.39 KB
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
46
47
name: Ahead-of-time compilation test
on:
pull_request:
branches: [ "main" ]
jobs:
build:
name: AOT test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Only test on Mac and Ubuntu – these are the fastest platforms.
# Windows and Linux ARM are built later after the PR is merged.
os: [macos-14, ubuntu-22.04]
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '24'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Setup SBT
uses: sbt/setup-sbt@v1
- name: Build native image
env:
DEV_BUILD: true
run: sbt GraalVMNativeImage/packageBin
- name: Test the binary
run: |
target/graalvm-native-image/jelly-cli version && \
echo '_:b <http://t.org/> _:b .' | target/graalvm-native-image/jelly-cli \
rdf to-jelly --in-format=nt > out.jelly && \
[ -s out.jelly ] &&
target/graalvm-native-image/jelly-cli \
rdf from-jelly --out-format=jelly-text out.jelly > out.txt && \
[ -s out.txt ]
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: jelly-cli-${{ matrix.os }}
path: target/graalvm-native-image/*