Skip to content

Commit 8e843e7

Browse files
committed
Try to set JAVA_HOME
1 parent 5aadf02 commit 8e843e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ env:
1010
RUST_LOG: debug,j4rs=warn
1111
CARGO_INCREMENTAL: 0
1212
RUSTFLAGS: "-C debuginfo=0"
13-
JAVA_HOME: ${{ env.JAVA_HOME_11_X64 }} # seems to default to 8 on Windows and Mac
1413

1514
jobs:
1615
test:
@@ -21,6 +20,10 @@ jobs:
2120
runs-on: ${{ matrix.os }}
2221

2322
steps:
23+
- name: Prepare env
24+
run: |
25+
echo "${JAVA_HOME}=${JAVA_HOME_11_X64}" >> $GITHUB_ENV
26+
2427
- name: Checkout
2528
uses: actions/checkout@v3
2629
- name: Install Rust

0 commit comments

Comments
 (0)