Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
sunchao committed Feb 13, 2024
1 parent 4ad923c commit cad9984
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ on:

env:
JAVA_VERSION: 17
JAVA_HOME: /usr/lib/jvm/java-${{env.JAVA_VERSION}}-openjdk-amd64

jobs:
linux-rust-test:
Expand Down Expand Up @@ -67,15 +68,14 @@ jobs:
cargo check --benches
- name: Build common module (pre-requisite for Rust tests)
env:
JAVA_HOME: /usr/lib/jvm/java-${{env.JAVA_VERSION}}-openjdk-amd64
run: |
echo "LIBRARY_PATH=$JAVA_HOME/lib:$JAVA_HOME/lib/server:$LD_LIBRARY_PATH" >> $GITHUB_ENV
cd common
../mvnw clean compile -DskipTests
- name: Run cargo test
run: |
# This is required to run some JNI related tests on the Rust side
echo "LIBRARY_PATH=$JAVA_HOME/lib:$JAVA_HOME/lib/server:$LD_LIBRARY_PATH" >> $GITHUB_ENV
cd core
cargo test --release
Expand All @@ -99,7 +99,7 @@ jobs:
- name: Run Maven compile
run: |
./mvnw compile test-compile scalafix:scalafix -Psemanticdb -Dscalafix.mode=Check
./mvnw compile test-compile scalafix:scalafix -Psemanticdb
- name: Run Maven install
run: |
Expand Down

0 comments on commit cad9984

Please sign in to comment.