jte Modules #331
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
name: Test native builds | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
java_version: [17] | |
# Windows builds are failing, looks similar to https://github.com/graalvm/native-build-tools/issues/234 | |
# Native build on Mac OS / Java 11 is failing | |
os: [macOS-latest, ubuntu-latest] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
distribution: 'graalvm' | |
java-version: ${{ matrix.java_version }} | |
components: 'native-image' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Make Maven Wrapper executable | |
if: contains(matrix.os, 'win') == false | |
run: chmod +x ./mvnw | |
- name: Build with Maven | |
run: ./mvnw install --file pom.xml --batch-mode -DskipTests=true | |
env: | |
MAVEN_OPTS: -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn | |
- name: Build Gradle Plugin | |
run: cd jte-gradle-plugin && ./gradlew publishToMavenLocal | |
- name: Test Gradle Plugin Generate with conventions | |
run: cd test/jte-runtime-cp-test-gradle-convention && ./gradlew check nativeTest |