Skip to content

Commit 20ef3bd

Browse files
committed
[ci] fix java opts not passing to fork process issue
1 parent ca119c3 commit 20ef3bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/lint.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ jobs:
2222
with:
2323
ref: ${{ github.event.pull_request.head.sha }}
2424
- name: "Check Scala code format"
25-
run: nix run ".#t1.elaborator.format" check
25+
run: |
26+
echo "$JAVA_OPTS" | tr ' ' '\n' > "$HOME/.mill-java-opts"
27+
export MILL_JVM_OPTS_PATH="$HOME/.mill-java-opts"
28+
nix run ".#t1.elaborator.format" check
2629
- name: "Check difftest code format"
2730
run: |
2831
nix shell '.#cargo' '.#rustfmt' -c bash -c 'cd difftest && cargo fmt --check'

0 commit comments

Comments
 (0)