Skip to content

Commit

Permalink
Use Java 8 for building Android benchmark binaries (#752)
Browse files Browse the repository at this point in the history
* Use Java 8 for building Android benchmark binaries

* Update deprecated ubuntu images
  • Loading branch information
lgeiger authored Aug 25, 2022
1 parent 58fcade commit 84e30bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/third_party/install_android.sh') }}
- name: Install pip dependencies
run: pip install numpy six --no-cache-dir
- name: Set Java version
run: echo "JAVA_HOME=${JAVA_HOME_8_X64}" >> $GITHUB_ENV
- name: Download and install Android NDK/SDK
if: steps.cache.outputs.cache-hit != 'true'
run: ./third_party/install_android.sh
Expand Down Expand Up @@ -85,7 +87,7 @@ jobs:
asset_content_type: application/octet-stream

android-aar:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -100,6 +102,8 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/third_party/install_android.sh') }}
- name: Install pip dependencies
run: pip install numpy six --no-cache-dir
- name: Set Java version
run: echo "JAVA_HOME=${JAVA_HOME_8_X64}" >> $GITHUB_ENV
- name: Download and install Android NDK/SDK
if: steps.cache.outputs.cache-hit != 'true'
run: ./third_party/install_android.sh
Expand Down Expand Up @@ -214,7 +218,7 @@ jobs:

manylinux-release-wheel:
name: Build release wheels for manylinux2014
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
run: PYTHONPATH=./ python larq_compute_engine/mlir/python/converter_test.py

Android_AAR:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci-skip')"

steps:
Expand All @@ -130,6 +130,8 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('**/third_party/install_android.sh') }}
- name: Install pip dependencies
run: pip install numpy six --no-cache-dir
- name: Set Java version
run: echo "JAVA_HOME=${JAVA_HOME_8_X64}" >> $GITHUB_ENV
- name: Download and install Android NDK/SDK
if: steps.cache.outputs.cache-hit != 'true'
run: ./third_party/install_android.sh
Expand Down

0 comments on commit 84e30bd

Please sign in to comment.