Skip to content

Commit

Permalink
Bump GA ubuntu-latest (ubuntu-20.04) to ubuntu-22.04 (leotm#915)
Browse files Browse the repository at this point in the history
Bump followed-up in: leotm#918

* Remove ccache-action

* Upgrade Android CI from ubuntu-20.04 to ubuntu-22.04

* Remove JDK 18 temurin setup

* Remove NDK 25 setup

* Remove CMake 3.23.1 setup

* Rename gradle.yml to android.yml
  • Loading branch information
leotm authored Aug 25, 2022
1 parent ea43b75 commit 393df77
Showing 1 changed file with 1 addition and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,49 +23,17 @@ on:
jobs:
build-android:

runs-on: ubuntu-latest
runs-on: ubuntu-22.04

# Local job envs

steps:

- uses: actions/checkout@v3

- name: ccache
uses: hendrikmuhs/[email protected]

- name: Set up JDK 18
uses: actions/[email protected]
with:
java-version: 18
distribution: temurin
cache: 'gradle'

# (Standalone toolchains obsolete)
# Ubuntu 20.04: r21e, r22, r23b, Custom: r24+
- name: Set up NDK r25 LTS
uses: nttld/[email protected]
with:
ndk-version: r25

# - name: Or manually set NDK X env vars
# run: |
# export ANDROID_NDK_HOME=/usr/local/lib/android/sdk/ndk/x.x.x
# export ANDROID_NDK_ROOT=/usr/local/lib/android/sdk/ndk/x.x.x

- name: Install all project dependencies
run: yarn

- name: Get and extract cmake-3.23.1-linux-x86_64.tar.gz to /usr/local/lib/android/sdk
run: |
wget https://github.com/Kitware/CMake/releases/download/v3.23.1/cmake-3.23.1-linux-x86_64.tar.gz
tar xzf cmake-3.23.1-linux-x86_64.tar.gz
rm -rf cmake-3.23.1-linux-x86_64.tar.gz
mkdir -p /usr/local/lib/android/sdk/cmake/3.22.1
cp -rf cmake-3.23.1-linux-x86_64/* /usr/local/lib/android/sdk/cmake/3.22.1
cd cmake-3.23.1-linux-x86_64
./bin/cmake --version
- name: Build application Debug APK with Gradle
uses: gradle/[email protected]
with:
Expand Down

0 comments on commit 393df77

Please sign in to comment.