mirror of
https://github.com/github/codeql.git
synced 2026-04-12 10:34:02 +02:00
Android tests: use Java 11 under Actions
Some runners still default to Java 8 (e.g. windows-2022 and macos-12), so we need to manually pull Java 11 in in such cases.
This commit is contained in:
committed by
Chris Smowton
parent
b6df415fe8
commit
4197d7bd20
@@ -2,4 +2,9 @@ import sys
|
||||
|
||||
from create_database_utils import *
|
||||
|
||||
if "JAVA_HOME_11_X64" in os.environ:
|
||||
os.environ["JAVA_HOME"] = os.environ["JAVA_HOME_11_X64"]
|
||||
sep = ";" if platform.system() == "Windows" else ":"
|
||||
os.environ["PATH"] = "".join([os.path.join(os.environ["JAVA_HOME"], "bin"), sep, os.environ["PATH"]])
|
||||
|
||||
run_codeql_database_create([], lang="java")
|
||||
|
||||
Reference in New Issue
Block a user