Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
abdd5c7
Add support for GraalVM
sgammon Jun 8, 2024
e27e84c
fix: only build gvm sources on jdk11+
sgammon Jun 8, 2024
37a2c95
fixup!: missing conditional
sgammon Jun 8, 2024
8912d6e
fixup!: jdk8 missing classses dir
sgammon Jun 8, 2024
5c500b9
test: sample/test gradle build for native image
sgammon Jun 8, 2024
1af7e17
chore: ci config to run native sample
sgammon Jun 8, 2024
28dc8d3
fixup!: gradle properties
sgammon Jun 8, 2024
1d842d5
fix: duplicate dependencies block in gvm pom
sgammon Jun 8, 2024
7291871
fix: method alignment in default feature
sgammon Jun 8, 2024
ade622a
fixup!: give native image test an arg
sgammon Jun 8, 2024
a773ad5
fix: proxy config for user code sample
sgammon Jun 8, 2024
8c26eb2
chore: update touched libs
sgammon Jun 8, 2024
2bec2fa
chore: update remaining distlibs
sgammon Jun 8, 2024
a0c88b3
fixup!: gvm ci job
sgammon Jun 8, 2024
2ff0205
fixup!: missing license header
sgammon Jun 8, 2024
eda9cce
chore: dispatch graalvm ci as sub-workflow
sgammon Jun 8, 2024
ff89371
fixup!: job names for gvm ci
sgammon Jun 8, 2024
c520130
fixup!: drop daemon jvm props
sgammon Jun 8, 2024
76d28d1
fixup!: reusable workflow issues
sgammon Jun 8, 2024
b5dab49
fixup!: fail on native image build err
sgammon Jun 8, 2024
60f10dd
fixup!: restore main ci
sgammon Jun 8, 2024
15101a4
fixup!: `nativeRun` task
sgammon Jun 8, 2024
83b3769
fixup!: mkdirs for gvm target directories
sgammon Jun 8, 2024
c7c92d3
feat(graalvm): add `Library` proxy auto-config
sgammon Jun 8, 2024
9f8167c
chore: general nit cleanup
sgammon Jun 8, 2024
10a3e10
chore: add @sgammon and @darvld to developers of graalvm integration
sgammon Jun 8, 2024
947be4a
Add jnidispatch as a static JNI library in GraalVM
darvld Jun 9, 2024
830bbff
fix: lib name symbol, compile time svm dep
sgammon Jun 10, 2024
e4c48ca
Correctly unpack jnidispatch from resources
darvld Jun 10, 2024
d694d8c
Avoid deleting the graalvm output during build
darvld Jun 10, 2024
abc8d8f
Use static jnidispatch binary instead of shared in Substrate feature
darvld Jun 10, 2024
9ba89fb
Add static JNI library to Native Image lib path
darvld Jun 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/graalvm.workflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# GraalVM build and native test.
name: GraalVM CI (Reusable)

on:
workflow_dispatch:
inputs:
runner:
description: 'The operating system to run the tests on'
default: 'ubuntu-latest'
type: string
java:
description: 'The Java version to run the tests with'
default: 21
type: number
workflow_call:
inputs:
runner:
description: 'The operating system to run the tests on'
default: 'ubuntu-latest'
type: string
java:
description: 'The Java version to run the tests with'
default: 21
type: number
push:
branches:
- master

permissions:
contents: read

env:
ANT_OPTS: -Djava.security.manager=allow

jobs:
build:
runs-on: ${{ inputs.runner }}
name: Test GVM ${{ inputs.java }}, ${{ inputs.runner }}

steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '${{ inputs.java }}'
distribution: 'graalvm-community'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Linux requirements
if: contains(inputs.runner, 'ubuntu')
run: sudo apt-get -y install texinfo
- name: macOS requirements
if: contains(inputs.runner, 'macos')
run: |
brew update
brew install automake --force
brew install libtool --force
brew install texinfo --force
- uses: gradle/actions/setup-gradle@v3
- name: "Build: Native Image"
run: ant dist && ant install && ant nativeImage && ant nativeRun
34 changes: 34 additions & 0 deletions .github/workflows/graalvm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# GraalVM build and native test.
name: GraalVM CI

on:
workflow_dispatch:
workflow_call:
pull_request:
push:
branches:
- master

permissions:
contents: read

env:
ANT_OPTS: -Djava.security.manager=allow

jobs:
build:
runs-on: ubuntu-latest
name: Test GVM 22, ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '22'
distribution: 'graalvm-community'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Linux requirements
run: sudo apt-get -y install texinfo
- uses: gradle/actions/setup-gradle@v3
- name: "Build: Native Image"
run: ant dist && ant install && ant nativeImage && ant nativeRun
Loading