Skip to content

Commit 7ee89a6

Browse files
committed
sudo "$JAVA_HOME"/bin/java ?
The preceding commit clearly showed that sudo -E did what it says on the tin, preserved the environment, JAVA_HOME was pointing to 9 in the sudo environment, and sudo -E java still ran 8. Huh? Anyway, with this working, expand the matrix a little.
1 parent 31a46c2 commit 7ee89a6

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/ci-runnerpg.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
matrix:
1919
os: [ubuntu-latest, macos-latest]
20-
java: [9] # , 11, 12, 14, 15-ea]
20+
java: [9, 11] # , 12, 14, 15-ea]
2121

2222
steps:
2323

@@ -73,11 +73,7 @@ jobs:
7373
tail -n 1
7474
)
7575
76-
env | fgrep JAVA
77-
java -version
78-
sudo -E env | fgrep JAVA
79-
sudo -E java -version
80-
sudo -E java -Dpgconfig="$pgConfig" -jar "$packageJar"
76+
sudo "$JAVA_HOME"/bin/java -Dpgconfig="$pgConfig" -jar "$packageJar"
8177
8278
jshell \
8379
-execution local \

0 commit comments

Comments
 (0)