Skip to content

Commit

Permalink
Use setup-java
Browse files Browse the repository at this point in the history
  • Loading branch information
huydhn committed Jul 24, 2024
1 parent 2021100 commit 30d7589
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .ci/docker/common/install_android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ install_prerequiresites() {
# Cleanup package manager
apt-get autoclean && apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

update-java-alternatives -s java-1.17.0-openjdk-amd64
;;
esac
}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ jobs:
with:
python-version: '3.10'

# NB: Need this to setup Java on GH runner
- uses: actions/setup-java@v4
with:
distribution: corretto
java-version: 17

- name: Install Android dependencies
shell: bash
run: |
Expand Down

0 comments on commit 30d7589

Please sign in to comment.