Skip to content

Add support for ahead-of-time compilation #182

Add support for ahead-of-time compilation

Add support for ahead-of-time compilation #182

Workflow file for this run

name: Tests
on:
push:
branches:
- develop
pull_request:
branches:
- develop
- main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Testing the Java code
run: mvn package
# Only run for pull request on main or if pushed to develop
compile_native:
if: github.base_ref == "main" || github.event_name == "push"

Check failure on line 33 in .github/workflows/maven.yml

View workflow run for this annotation

GitHub Actions / Tests

Invalid workflow file

The workflow is not valid. .github/workflows/maven.yml (Line: 33, Col: 9): Unexpected symbol: '"main"'. Located at position 20 within expression: github.base_ref == "main" || github.event_name == "push"
name: Test Native Executable Compilation
runs-on: ubuntu-latest
needs: find_version
steps:
- uses: actions/checkout@v4
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
cache: 'maven'
- name: 'Generate configuration files'
run: './graalvm/generate-config.sh'
- name: 'Compile native-binary'
run: 'mvn -DskipTests package -Pnative'