ci: fix some builds #243
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: ci-java | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
build_test: | |
name: Build & Test Java Wrapper | |
if: "! contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
jdk-version: [11] | |
jvm-build-version: [11] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK ${{ matrix.jdk-version }} | |
uses: actions/setup-java@v2 | |
with: | |
distribution: "adopt" | |
java-version: | | |
${{ matrix.jdk-version }} | |
- name: Set up JVM for building ${{ matrix.jvm-build-version }} | |
uses: actions/setup-java@v2 | |
with: | |
distribution: "adopt" | |
java-version: | | |
${{ matrix.jdk-version }} | |
- name: Show env | |
run: env | grep -i java | |
- name: Build with Gradle | |
working-directory: ./wrappers/java | |
run: ./gradlew build -Dorg.gradle.java.home=$JAVA_HOME_${{ matrix.jdk-version }}_arm64 -PtargetVersion=${{ matrix.jdk-version }} --stacktrace --debug |