diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index f00a9510f8..ae8d285bbe 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -113,6 +113,12 @@ jobs: path: ./packages/cinterop/build/realmLinuxBuild key: jni-linux-lib-${{ needs.check-cache.outputs.packages-sha }} + - name: Setup Java 11 + uses: actions/setup-java@v3 + with: + distribution: ${{ vars.VERSION_JAVA_DISTRIBUTION }} + java-version: ${{ vars.VERSION_JAVA }} + - name: Setup cmake uses: jwlawson/actions-setup-cmake@v1.13 with: @@ -137,7 +143,7 @@ jobs: -DREALM_NO_TESTS=1 \ -DREALM_BUILD_LIB_ONLY=true \ -DCMAKE_TOOLCHAIN_FILE=../../../external/core/tools/cmake/x86_64-linux-gnu.toolchain.cmake \ - -DJAVA_INCLUDE_PATH=/usr/lib/jvm/java-8-openjdk-amd64/include/ \ + -DJAVA_INCLUDE_PATH=${{ env.JAVA_HOME }}/include/ \ ../../src/jvm make -j8