Skip to content

Commit

Permalink
install java 11 and set as default
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Nov 3, 2023
1 parent 1223c5f commit 7d04ec8
Showing 1 changed file with 7 additions and 24 deletions.
31 changes: 7 additions & 24 deletions .github/workflows/tests_export_import.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,19 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: |
11
- name: test java1
run: |
type java
echo "===========1========="
java -version || exit 0
echo "===========2========="
/usr/libexec/java_home -V
echo "===========3========="
/usr/libexec/java_home -v 11
echo "===========4========="
export JAVA_HOME=$(/usr/libexec/java_home -v11)
echo "===========5========="
java -version
echo "===========6========="
$JAVA_HOME/bin/java -version
echo "===========7========="
$JAVA_HOME/bin/javac -version
echo "===========8========="
ls -al /usr/local/Cellar/openjdk/
echo "===========9========="
ls -al /usr/bin/java
echo "==========10========="
id
export PATH="/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.20-101/x64/Contents/Home/bin:$PATH"
echo "==========11========="
/usr/libexec/java_home -v11
echo "==========12========="
java -version
- name: install cliclick
run: brew install cliclick
Expand All @@ -76,10 +61,8 @@ jobs:
script: |
rm -f /Users/runner/work/ToxAndroidRefImpl/ToxAndroidRefImpl/android-refimpl-app/app/witness.gradle
sed -i -e 's#a.getWindow().addFlags#//a.getWindow().addFlagsXXYY#' /Users/runner/work/ToxAndroidRefImpl/ToxAndroidRefImpl/android-refimpl-app/app/src/main/java/com/zoffcc/applications/trifa/CallingActivity.java
echo 'org.gradle.java.home=/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.20-101/x64/Contents/Home' >> /Users/runner/work/ToxAndroidRefImpl/ToxAndroidRefImpl/android-refimpl-app/gradle.properties
printf 'dependencyVerification {\nverify = [\n]\n}\n' > /Users/runner/work/ToxAndroidRefImpl/ToxAndroidRefImpl/android-refimpl-app/app/witness.gradle
export JAVA_HOME=$(/usr/libexec/java_home -v11)
export PATH="/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.20-101/x64/Contents/Home/bin:$PATH"
java -version
cd android-refimpl-app ; ./gradlew assemble
cliclick -m verbose m:12,34
Expand Down

0 comments on commit 7d04ec8

Please sign in to comment.