Fix: Drop Binary Artifacts #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
- name: Harden Runner | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- uses: graalvm/setup-graalvm@2f25c0caae5b220866f732832d5e3e29ff493338 # v1.2.1 | |
with: | |
java-version: '22' | |
distribution: 'graalvm-community' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Linux requirements | |
run: sudo apt-get -y install texinfo | |
- name: Setup codebase | |
run: bash setup.sh | |
- uses: gradle/actions/setup-gradle@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2 | |
- name: "Build: Compile & Install JNA" | |
run: ant && ant install | |
- name: "Build: Native Images (Dynamic JNI)" | |
run: ant nativeImage && ant nativeRun | |
- name: "Build: Native Image (Static JNI)" | |
run: ant nativeImageStatic && ant nativeRunStatic | |