Skip to content

Commit

Permalink
try using the JAVA HOME env
Browse files Browse the repository at this point in the history
  • Loading branch information
clementetb committed Jul 5, 2024
1 parent f1e0872 commit 77838f0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
Expand All @@ -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
Expand Down

0 comments on commit 77838f0

Please sign in to comment.